Skip to content

Commit 2ad0918

Browse files
committed
[CI/CD]
1 parent bede9b9 commit 2ad0918

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/node.js.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,19 @@ jobs:
2424
with:
2525
node-version: 22
2626
registry-url: 'https://registry.npmjs.org'
27+
env:
28+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2729

2830
- name: Install dependencies (Yarn Berry)
2931
run: yarn install --immutable
3032
env:
31-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
33+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
34+
35+
- name: Debug .npmrc
36+
run: cat .npmrc
37+
38+
- name: Debug .yarnrc.yml
39+
run: cat .yarnrc.yml
3240

3341
- name: Run tests (if test script exists)
3442
run: yarn workspaces foreach --all --topological --parallel --no-private run test
@@ -43,12 +51,6 @@ jobs:
4351
run: |
4452
yarn workspaces foreach --all version patch
4553
git push --follow-tags
46-
47-
- name: Debug .npmrc
48-
run: cat .npmrc
49-
50-
- name: Debug .yarnrc.yml
51-
run: cat .yarnrc.yml
5254
5355
- name: Check NPM Authentication
5456
run: npm whoami

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
nodeLinker: pnp
22
npmRegistryServer: "https://registry.npmjs.org"
33
npmAlwaysAuth: true
4-
npmAuthToken: "${NPM_TOKEN}"
4+
npmAuthToken: "${NODE_AUTH_TOKEN}"

0 commit comments

Comments
 (0)