Skip to content

Commit 0cda40b

Browse files
committed
[CI/CD] yarn order
1 parent d5441ce commit 0cda40b

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424
with:
2525
node-version: 22
2626
registry-url: 'https://registry.npmjs.org'
27-
env:
28-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
29-
27+
3028
- name: Install dependencies (Yarn Berry)
3129
run: yarn install --immutable
30+
env:
31+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3232

3333
- name: Run tests (if test script exists)
3434
run: yarn workspaces foreach --all --topological --parallel --no-private run test
@@ -63,3 +63,10 @@ jobs:
6363
if: github.ref == 'refs/heads/main'
6464
run: cd ./packages/main && npm publish --access public
6565

66+
67+
- name: Configure Yarn authentication
68+
run: |
69+
echo 'npmRegistryServer: "https://registry.npmjs.org"' >> .yarnrc.yml
70+
echo 'npmAlwaysAuth: true' >> .yarnrc.yml
71+
echo 'npmAuthToken: "${{ secrets.NPM_TOKEN }}"' >> .yarnrc.yml
72+

0 commit comments

Comments
 (0)