Skip to content

Commit

Permalink
Update ci.yml node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
bourgeoa authored Feb 4, 2025
1 parent 97834c0 commit ab071d2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
strategy:
matrix:
node-version:
- 16.x
- 18.x
- 20.x

steps:
- uses: actions/checkout@v2
Expand All @@ -34,8 +34,8 @@ jobs:
- run: npm test
- run: npm run build --if-present
- name: Save build
if: matrix.node-version == '16.x'
uses: actions/upload-artifact@v2
if: matrix.node-version == '18.x'
uses: actions/upload-artifact@v4
with:
name: build
path: |
Expand All @@ -46,12 +46,12 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: build
- uses: actions/setup-node@v1
with:
node-version: 16.x
node-version: 18.x
- uses: rlespinasse/github-slug-action@v3.x
- name: Append commit hash to package version
run: 'sed -i -E "s/(\"version\": *\"[^\"]+)/\1-${GITHUB_SHA_SHORT}/" package.json'
Expand All @@ -67,12 +67,12 @@ jobs:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: build
- uses: actions/setup-node@v1
with:
node-version: 16.x
node-version: 18.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 ab071d2

Please sign in to comment.