From 6536444931f9d283768e380caec8e5fd70a46e17 Mon Sep 17 00:00:00 2001 From: pgilad Date: Mon, 3 Jun 2024 09:23:18 +0300 Subject: [PATCH] Update other GH actions to v4 and make sure upload artifact only runs on ubuntu --- .github/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f984a2f..d9f50ac 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -63,7 +63,7 @@ jobs: - name: Reporter CLI smoke test run: node ./dist/cli/leasot-reporter.js --help - - if: matrix.node-version == env.DEFAULT_NODE_VERSION + - if: matrix.node-version == env.DEFAULT_NODE_VERSION && matrix.os == 'ubuntu-latest' uses: actions/upload-artifact@v4 with: name: build @@ -81,11 +81,11 @@ jobs: runs-on: ubuntu-latest needs: build steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: build - name: Deploy Docs - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./docs @@ -96,11 +96,11 @@ jobs: runs-on: ubuntu-latest needs: build steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: build - name: Use Node.js ${{ env.DEFAULT_NODE_VERSION }} with NPM registry - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ env.DEFAULT_NODE_VERSION }} registry-url: 'https://registry.npmjs.org'