Skip to content

Commit 7e34eb3

Browse files
committed
chore: move to node 22
1 parent 1adfde3 commit 7e34eb3

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed

.github/workflows/nodejs.yml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,22 @@ on: [push]
44

55
jobs:
66
build:
7-
87
runs-on: ubuntu-latest
98

109
steps:
11-
- uses: actions/checkout@v4
12-
- name: Use Node.js 20
13-
uses: actions/setup-node@v4
14-
with:
15-
node-version: 20
10+
- uses: actions/checkout@v4
11+
- name: Use Node.js 22
12+
uses: actions/setup-node@v4
13+
with:
14+
node-version: 22
1615

17-
- name: npm install, lint, build, and test
18-
run: |
19-
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
20-
yarn install --immutable
21-
yarn lint
22-
yarn build
23-
yarn test --coverage
24-
env:
25-
NPM_TOKEN: ${{secrets.npm_token}}
26-
CI: true
16+
- name: npm install, lint, build, and test
17+
run: |
18+
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
19+
yarn install --immutable
20+
yarn lint
21+
yarn build
22+
yarn test --coverage
23+
env:
24+
NPM_TOKEN: ${{secrets.npm_token}}
25+
CI: true

.github/workflows/npmpublish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v4
1313
- uses: actions/setup-node@v4
1414
with:
15-
node-version: 20
15+
node-version: 22
1616
- run: |
1717
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
1818
yarn install --immutable
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/checkout@v4
3030
- uses: actions/setup-node@v4
3131
with:
32-
node-version: 20
32+
node-version: 22
3333
registry-url: https://registry.npmjs.org/
3434
- run: yarn install --immutable
3535
- run: yarn build
@@ -39,4 +39,3 @@ jobs:
3939
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4040
run: |
4141
yarn dlx semantic-release
42-

0 commit comments

Comments
 (0)