Skip to content

Commit 37f3f2a

Browse files
committed
enable corepack in github action
1 parent 37aa4af commit 37f3f2a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/npm-publish.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- uses: actions/setup-node@v4
1717
with:
1818
node-version: 20
19+
- run: corepack enable
1920
- run: yarn install --immutable
2021
# - run: npm test
2122

@@ -30,7 +31,13 @@ jobs:
3031
- uses: actions/setup-node@v4
3132
with:
3233
node-version: 20
33-
registry-url: https://registry.npmjs.org/
34+
registry-url: //registry.npmjs.org/:_authToken=${NPM_TOKEN}
35+
env:
36+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
- run: cat .yarnrc.yml
38+
- run: cat .npmrc
39+
- run: cat .yarnrc
40+
- run: corepack enable
3441
- run: yarn install --immutable
3542
- run: yarn workspace @jdeniau/immutable-devtools npm publish --provenance
3643
env:

0 commit comments

Comments
 (0)