Skip to content

Commit 5be9438

Browse files
author
Olavo Parno
committed
Update GitHub Actions workflows to use Node.js 20.x and latest action versions
- Updated `npm-publish.yml` to use `actions/checkout@v4` and `actions/setup-node@v4`, changing the Node.js version to 20.x. - Updated `pull-request.yml` to use `actions/checkout@v4` and `actions/setup-node@v4`, modifying the Node.js version matrix to include 18.x and 20.x.
1 parent 27e1711 commit 5be9438

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/npm-publish.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
13-
- uses: actions/setup-node@v2
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
1414
with:
15-
node-version: 16
15+
node-version: 20.x
1616
- run: npm install
1717
- run: npm run build
1818

1919
publish-npm:
2020
needs: build
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v2
24-
- uses: actions/setup-node@v2
23+
- uses: actions/checkout@v4
24+
- uses: actions/setup-node@v4
2525
with:
26-
node-version: 16
26+
node-version: 20.x
2727
registry-url: https://registry.npmjs.org/
2828
- run: npm install
2929
- run: npm publish
3030
env:
31-
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
31+
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

.github/workflows/pull-request.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
node-version: [12.x, 14.x, 16.x]
16+
node-version: [18.x, 20.x]
1717
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
1818

1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2121
- name: Use Node.js ${{ matrix.node-version }}
22-
uses: actions/setup-node@v2
22+
uses: actions/setup-node@v4
2323
with:
2424
node-version: ${{ matrix.node-version }}
2525
cache: "npm"
2626
- run: npm ci
27-
- run: npm run build
27+
- run: npm run build

0 commit comments

Comments
 (0)