File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments