-
Notifications
You must be signed in to change notification settings - Fork 89
automate publishing code to npmjs #75
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
Open
rajadilipkolli
wants to merge
21
commits into
main
Choose a base branch
from
63-automate-npm-release-process
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 20 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
eee6bc6
automate publishing code to npmjs
rajadilipkolli 6a2ff4e
running against main branch and node 20
rajadilipkolli 218698d
adds condition publish based on version change
rajadilipkolli 6895e2f
changes to test
rajadilipkolli 18f1bff
Update script to remove deprecated ones
rajadilipkolli 18e6d70
ensuring that build happens only once
rajadilipkolli 17c8f73
changes script to run only after all 9 workflows are successful
rajadilipkolli edd9271
Merge branch 'main' into 63-automate-npm-release-process
rajadilipkolli 235410c
adds checkout action
rajadilipkolli d1f14dc
fix indentation issue
rajadilipkolli dd1fa68
fix indendation
rajadilipkolli 8d2967a
copy steps to make build successful
rajadilipkolli 3b6bdd0
adds timeout
rajadilipkolli 7b3298f
polish
rajadilipkolli 8bc2212
drop node 16 support
rajadilipkolli 00b7735
Merge branch 'main' into 63-automate-npm-release-process
rajadilipkolli 5e8d240
polish build.yml to handle after build is sucessful
rajadilipkolli 3a11859
Update build.yml
rajadilipkolli 4411219
create saperate relese workflow
rajadilipkolli 350ca20
restore original behaviour
rajadilipkolli 112fe97
Update .github/workflows/release.yml
rajadilipkolli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| name: Release to NPM | ||
| on: | ||
| push: | ||
| tags: | ||
| - '[0-9]+.[0-9]+.[0-9]+' # Matches semantic version tags like 1.2.3 | ||
|
|
||
| jobs: | ||
| release: | ||
| name: Publish to NPM | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 22.x | ||
| registry-url: 'https://registry.npmjs.org' | ||
|
|
||
| - name: Install dependencies | ||
| run: npm ci | ||
|
|
||
| - name: Run tests | ||
| run: npm test | ||
| env: | ||
| CI: true | ||
|
|
||
| - name: Publish to NPM | ||
| run: npm publish | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.