From 7aecc6f788c6768ca151f7013e8b56ba99b51b15 Mon Sep 17 00:00:00 2001 From: Alain Bourgeois Date: Tue, 4 Feb 2025 17:14:11 +0100 Subject: [PATCH] Update ci.yml node 20 --- .github/workflows/ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 79c7a86..928bad0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,8 +20,8 @@ jobs: strategy: matrix: node-version: - - 16.x - 18.x + - 20.x steps: - uses: actions/checkout@v2 @@ -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: | @@ -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' @@ -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