From f39f6bbca53e4e578bbaef854f68c7a26c631d4f Mon Sep 17 00:00:00 2001 From: JSON Date: Wed, 1 May 2024 16:44:40 +0100 Subject: [PATCH] chore: update CICD to use node20 (#186) --- .github/workflows/test-and-release.yml | 32 +++++++++++++------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/test-and-release.yml b/.github/workflows/test-and-release.yml index 300d301..a768487 100644 --- a/.github/workflows/test-and-release.yml +++ b/.github/workflows/test-and-release.yml @@ -9,18 +9,18 @@ jobs: name: lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: npm config get cache id: npm-cache-dir run: echo "::set-output name=dir::$(npm config get cache)" - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: ${{ steps.npm-cache-dir.outputs.dir }} - key: ${{ runner.os }}-node-18-${{ hashFiles('**/package.json') }} - restore-keys: ${{ runner.os }}-node-18- + key: ${{ runner.os }}-node-20-${{ hashFiles('**/package.json') }} + restore-keys: ${{ runner.os }}-node-20- - run: npm install - run: npm run lint @@ -32,15 +32,15 @@ jobs: matrix: node-version: [18, 20] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: npm config get cache id: npm-cache-dir run: echo "::set-output name=dir::$(npm config get cache)" - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: ${{ steps.npm-cache-dir.outputs.dir }} key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package.json') }} @@ -54,21 +54,21 @@ jobs: name: Release snyk-to-html runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: npm config get cache id: npm-cache-dir run: echo "::set-output name=dir::$(npm config get cache)" - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: ${{ steps.npm-cache-dir.outputs.dir }} - key: ${{ runner.os }}-node-18-${{ hashFiles('**/package.json') }} - restore-keys: ${{ runner.os }}-node-18- + key: ${{ runner.os }}-node-20-${{ hashFiles('**/package.json') }} + restore-keys: ${{ runner.os }}-node-20- - run: npm install - run: npm i -g --save-exact semantic-release@21.0.2 @semantic-release/exec@6.0.3 - - run: npx -p node@v18-lts -c "semantic-release" + - run: semantic-release --branches main env: PUBLIC_S3_BUCKET: ${{secrets.PUBLIC_S3_BUCKET}} AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}