Skip to content

Commit 0c52f0b

Browse files
authored
build: Bumped dependencies and migrated to Node 22 CI (#51)
1 parent e8ca4aa commit 0c52f0b

5 files changed

Lines changed: 4355 additions & 3675 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
node-version: [20.x, 22.x]
18+
node-version: [22.x, 24.x]
1919
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2020

2121
steps:
@@ -31,7 +31,7 @@ jobs:
3131
- run: npm run build
3232
- run: npm run test
3333
- name: Publish to coveralls.io
34-
if: matrix.node-version == '20.x'
34+
if: matrix.node-version == '22.x'
3535
uses: coverallsapp/github-action@v2
3636
with:
3737
github-token: ${{ github.token }}

.github/workflows/npm-publish.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
types: [created]
99

1010
permissions:
11-
id-token: write # Required for OIDC
11+
id-token: write # Required for OIDC
1212
contents: read
1313

1414
jobs:
@@ -18,22 +18,22 @@ jobs:
1818
- uses: actions/checkout@v4
1919
- uses: actions/setup-node@v4
2020
with:
21-
node-version: '20'
21+
node-version: '22'
2222
cache: 'npm'
2323
registry-url: https://registry.npmjs.org/
24-
24+
2525
# Ensure npm 11.5.1 or later is installed in order to npm OIDC to work
2626
- name: Update npm
2727
run: npm install -g npm@latest
28-
28+
2929
- run: npm ci
3030
- run: npm run build
3131
- run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
3232
- run: echo ${VERSION}
3333
- name: Define npm tag
3434
run: |
35-
if [[ ${VERSION} == *"alpha"* || ${VERSION} == *"beta"* || ${VERSION} == *"rc"* ]]; then echo "NPM_TAG=next"; else echo "NPM_TAG=latest"; fi >> $GITHUB_ENV
36-
echo ${NPM_TAG}
35+
if [[ ${VERSION} == *"alpha"* || ${VERSION} == *"beta"* || ${VERSION} == *"rc"* ]]; then echo "NPM_TAG=next"; else echo "NPM_TAG=latest"; fi >> $GITHUB_ENV
36+
echo ${NPM_TAG}
3737
3838
- name: Version the package
3939
run: npm version ${VERSION} --no-git-tag-version --save --verbose
@@ -42,5 +42,5 @@ jobs:
4242
- name: Publish the package
4343
run: npm publish --tag ${NPM_TAG}
4444
working-directory: dist
45-
# env:
46-
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
45+
# env:
46+
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)