File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed
Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 11name : astrometry/publish
22
33on :
4+ pull_request :
5+ branches :
6+ - main
7+
48 release :
59 types : [published]
610
3337 uses : actions/setup-node@v4
3438 with :
3539 node-version : ${{ matrix.node }}
36- registry-url : ' https://npm.pkg.github.com'
3740 # Defaults to the user or organization that owns the workflow file:
3841 scope : ' @observerly'
3942
@@ -54,11 +57,18 @@ jobs:
5457 - name : Build the package ready for publishing
5558 run : pnpm run build
5659
57- - uses : JS-DevTools/npm-publish@v3
60+ - name : Publish to NPM 📦
61+ uses : JS-DevTools/npm-publish@v3
5862 with :
5963 registry : ' https://registry.npmjs.org/'
6064 access : ' public'
6165 token : ${{ secrets.NPM_OBSERVERLY_PUBLIC_TOKEN }}
66+ provenance : true
6267
63- - name : Publish to JSR.io 🚀
64- run : npx jsr publish
68+ - name : Publish to GitHub Packages 📦
69+ uses : JS-DevTools/npm-publish@v3
70+ with :
71+ registry : ' https://npm.pkg.github.com'
72+ access : ' restricted'
73+ token : ${{ secrets.GITHUB_TOKEN }}
74+ provenance : true
Original file line number Diff line number Diff line change 77# /*****************************************************************************************************************/
88
99registry = https://registry.npmjs.org/
10- @jsr:registry = https://npm.jsr.io
1110@observerly:registry = https://registry.npmjs.org/
12- @observerly:registry = https://npm.jsr.io
1311//npm.pkg.github.com/:_authToken = ${ NPM_TOKEN }
1412
1513# /*****************************************************************************************************************/
You can’t perform that action at this time.
0 commit comments