-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add publish workflows for npm packages #296
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: amands98 <[email protected]>
WalkthroughA new GitHub Actions workflow named Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- .github/workflows/release.yml (1 hunks)
Additional comments not posted (5)
.github/workflows/release.yml (5)
1-5
: LGTM! Workflow name and trigger event are correctly defined.The workflow is named
npm-publish
and is triggered by a push to themaster
branch.
6-9
: LGTM! Job name and runner are correctly defined.The job is named
npm-publish
and runs onubuntu-latest
.
10-12
: LGTM! Checkout step is correctly defined.The repository is checked out using the
actions/checkout@v4
action.
13-22
: LGTM! Publish step is correctly defined.The
pascalgn/[email protected]
action is used with appropriate parameters to tag and publish the package.
23-25
: LGTM! Environment variables are correctly defined and securely referenced.The
GITHUB_TOKEN
andNPM_AUTH_TOKEN
are securely referenced from secrets.
@Vad1mo Can you take a quick look? |
Implemented the publishing workflow for npm packages using the
pascalgn/npm-publish-action
.https://github.com/marketplace/actions/publish-to-npm
Requirements ->
1.) Access token and NPM_TOKEN
How to use ->
Simply push a commit with the name 'Release v*.*'; this action will automatically create the tag and publish the workflow to the npm registry.
Summary by CodeRabbit