Skip to content

Commit 18794e4

Browse files
committed
feat: new flow
1 parent 59af4b8 commit 18794e4

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/prerelease.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)