File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # manually run this action using the GitHub UI
2+ # https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/
13name : publish to npm
24on : workflow_dispatch
35jobs :
46 main :
57 runs-on : ubuntu-latest
68 steps :
79 - name : ⬇️ Checkout repo
8- uses : actions/checkout@v2
10+ uses : actions/checkout@v3
911 with :
10- fetch-depth : 0
12+ ref : ${{ github.head_ref }}
1113
1214 - name : ⎔ Setup node
1315 # sets up the .npmrc file to publish to npm
14- uses : actions/setup-node@v2
16+ uses : actions/setup-node@v3
1517 with :
1618 node-version : " 16"
1719 registry-url : " https://registry.npmjs.org"
2527 run : |
2628 git config --global user.email ${{ github.actor }}@users.noreply.github.com
2729 git config --global user.name ${{ github.actor }}
28- - name : Publish to npm
30+ - name : 📦 Publish to npm using existing scripts
2931 run : npm run release
3032 env :
31- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
33+ # actions/setup-node uses this NODE_AUTH_TOKEN environment variable for npm publishing
34+ # https://docs.github.com/en/actions/tutorials/publish-packages/publish-nodejs-packages
35+ NODE_AUTH_TOKEN : ${{ secrets.KRAKENJS_PAYPAL_SDK_NPM_AUTH_TOKEN }}
You can’t perform that action at this time.
0 commit comments