Skip to content

Commit d1efbce

Browse files
committed
change token stuff
1 parent de78d00 commit d1efbce

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

.github/actions/yarn/action.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
11
name: 'Restore Yarn Cache'
22
description: '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-
94
runs:
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/

.github/workflows/publish.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ permissions:
1919
concurrency:
2020
group: ${{ github.workflow }}-${{ github.ref }}
2121

22+
env:
23+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
24+
2225
jobs:
2326
publish:
2427
runs-on: ubuntu-22.04
@@ -36,9 +39,6 @@ jobs:
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
@@ -53,8 +53,6 @@ jobs:
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 }}

0 commit comments

Comments
 (0)