Skip to content

Commit

Permalink
Update ci.yml to node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
bourgeoa authored Feb 4, 2025
1 parent 33f09d8 commit 74e8020
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
strategy:
matrix:
node-version:
- 16.x
- 18.x
- 20.x
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -28,7 +28,7 @@ jobs:
- run: npm run doc
- run: npm run build
- name: Save build
if: matrix.node-version == '18.x'
if: matrix.node-version == '20.x'
uses: actions/upload-artifact@v4
with:
name: build
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
name: build
- uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 20.x
- uses: rlespinasse/[email protected]
- name: Append commit hash to package version
run: 'sed -i -E "s/(\"version\": *\"[^\"]+)/\1-${GITHUB_SHA_SHORT}/" package.json'
Expand All @@ -80,7 +80,7 @@ jobs:
name: build
- uses: actions/setup-node@v1
with:
node-version: 18.x
node-version: 20.x
- name: Disable pre- and post-publish actions
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
- uses: JS-DevTools/npm-publish@v1
Expand Down

0 comments on commit 74e8020

Please sign in to comment.