Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

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

steps:
Expand All @@ -31,7 +31,7 @@ jobs:
- run: npm run build
- run: npm run test
- name: Publish to coveralls.io
if: matrix.node-version == '20.x'
if: matrix.node-version == '22.x'
uses: coverallsapp/github-action@v2
with:
github-token: ${{ github.token }}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
types: [created]

permissions:
id-token: write # Required for OIDC
id-token: write # Required for OIDC
contents: read

jobs:
Expand All @@ -18,22 +18,22 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
cache: 'npm'
registry-url: https://registry.npmjs.org/

# Ensure npm 11.5.1 or later is installed in order to npm OIDC to work
- name: Update npm
run: npm install -g npm@latest

- run: npm ci
- run: npm run build
- run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- run: echo ${VERSION}
- name: Define npm tag
run: |
if [[ ${VERSION} == *"alpha"* || ${VERSION} == *"beta"* || ${VERSION} == *"rc"* ]]; then echo "NPM_TAG=next"; else echo "NPM_TAG=latest"; fi >> $GITHUB_ENV
echo ${NPM_TAG}
if [[ ${VERSION} == *"alpha"* || ${VERSION} == *"beta"* || ${VERSION} == *"rc"* ]]; then echo "NPM_TAG=next"; else echo "NPM_TAG=latest"; fi >> $GITHUB_ENV
echo ${NPM_TAG}

- name: Version the package
run: npm version ${VERSION} --no-git-tag-version --save --verbose
Expand All @@ -42,5 +42,5 @@ jobs:
- name: Publish the package
run: npm publish --tag ${NPM_TAG}
working-directory: dist
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
Loading