Skip to content

Commit cbe0d2b

Browse files
committed
fix: update github action node version
1 parent ca180a5 commit cbe0d2b

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,27 @@ jobs:
1414
- name: Checkout Repo
1515
uses: actions/checkout@v4
1616

17-
- name: Setup Node.js 20.x
17+
- name: Setup Node.js 22.x
1818
uses: actions/setup-node@v4
1919
with:
20-
node-version: 20.x
20+
node-version: 22.x
2121

2222
- name: Enable Corepack
2323
run: corepack enable
2424

2525
- name: Install Dependencies
2626
run: yarn install --immutable
2727

28+
- name: Configure npm authentication
29+
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
30+
env:
31+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
32+
2833
- name: Create Release Pull Request or Publish to npm
2934
uses: changesets/action@v1
3035
with:
3136
publish: yarn release
3237
env:
3338
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3439
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
40+
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ yarn-debug.log*
3535
yarn-error.log*
3636

3737
.turbo
38-
38+
.npmrc

0 commit comments

Comments
 (0)