File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed
Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change 11name : ' Restore Yarn Cache'
22description : ' Setup a NodeJS environment and restore cache if any, given a node version'
33
4- inputs :
5- token :
6- description : ' NPM Token'
7- required : false
8-
94runs :
105 using : ' composite'
116 steps :
127 - name : Setup Node.js
138 uses : actions/setup-node@v3
14- env :
15- NODE_AUTH_TOKEN : ${{ inputs.token }}
169 with :
1710 node-version-file : .nvmrc
1811 registry-url : https://registry.npmjs.org/
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ permissions:
1919concurrency :
2020 group : ${{ github.workflow }}-${{ github.ref }}
2121
22+ env :
23+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
24+
2225jobs :
2326 publish :
2427 runs-on : ubuntu-22.04
3639 git config --global push.default current
3740
3841 - uses : ./.github/actions/yarn
39- with :
40- token : ${{ secrets.NPM_TOKEN }}
41-
4242 - run : yarn turbo run build --concurrency=3
4343
4444 - name : Publish
5353 steps :
5454 - uses : actions/checkout@v3
5555 - uses : ./.github/actions/yarn
56- with :
57- token : ${{ secrets.NPM_TOKEN }}
5856 - run : npx auto pr-check --url "https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}?pr=${{github.event.pull_request.number}}"
5957 env :
6058 GH_TOKEN : ${{ secrets.ACTIONS_GITHUB_TOKEN || github.token }}
You can’t perform that action at this time.
0 commit comments