File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -48,11 +48,14 @@ jobs:
4848 GITHUB_TOKEN : ${{ secrets.PAT }}
4949 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
5050 run : |
51- # Configure both npm and GitHub Package registries
51+ # Configure npm registry first (this will be the default)
5252 echo "registry=https://registry.npmjs.org/" > .npmrc
5353 echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
54- echo "@niledatabase:registry=https://npm.pkg.github.com" >> .npmrc
55- echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" >> .npmrc
5654
5755 # Run semantic-release with prerelease configuration
58- npx semantic-release
56+ npx semantic-release
57+
58+ # After publishing to npm, publish to GitHub Packages
59+ echo "@niledatabase:registry=https://npm.pkg.github.com" >> .npmrc
60+ echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" >> .npmrc
61+ npm publish --registry https://npm.pkg.github.com
You can’t perform that action at this time.
0 commit comments