Skip to content

Commit 48b5c72

Browse files
committed
Publish to GitHub packages as well
1 parent 75857cd commit 48b5c72

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/ci-release.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,22 @@ jobs:
4343
echo "DIST_TAG=$PRERELEASE" >> $GITHUB_ENV
4444
4545
- name: Install npm dependencies
46-
run: npm install
46+
run: npm ci
4747

4848
- name: Publish to npmjs.org
4949
env:
5050
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5151
run: |
5252
echo "Publishing to npmjs.org using dist-tag: $DIST_TAG"
5353
npm publish --access=public --tag "$DIST_TAG"
54+
55+
- name: Set up auth for GitHub packages
56+
run: |
57+
npm config set "//npm.pkg.github.com/:_authToken" "\${NODE_AUTH_TOKEN}"
58+
- name: Publish to pkg.github.com
59+
env:
60+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
run: |
62+
npm config set "@fastly:registry" "https://npm.pkg.github.com/"
63+
echo "Publishing to pkg.github.com using dist-tag: $DIST_TAG"
64+
npm publish --access=public --tag "$DIST_TAG"

0 commit comments

Comments
 (0)