From b58098dcbb5f6431c3870809b9ca13bcfcb9f582 Mon Sep 17 00:00:00 2001 From: Martin Trapp <94928215+martrapp@users.noreply.github.com> Date: Thu, 29 Feb 2024 01:19:58 +0100 Subject: [PATCH] Updates deprecated Node.js 16 github actions --- .github/workflows/benchmark.yml | 2 +- .github/workflows/check.yml | 2 +- .github/workflows/ci.yml | 10 +++++----- .github/workflows/main.yml | 2 +- .github/workflows/release.yml | 4 ++-- .github/workflows/scripts.yml | 2 +- .github/workflows/snapshot-release.yml | 6 +++--- .github/workflows/test-hosts.yml | 2 +- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 59bc9cca5b4f..44537f1338a7 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -27,7 +27,7 @@ jobs: ref: refs/pull/${{ github.event.issue.number }}/head - name: Setup PNPM - uses: pnpm/action-setup@v2 + uses: pnpm/action-setup@v3 - name: Setup Node uses: actions/setup-node@v4 diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 8484b8bb2b22..736db549c466 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -29,7 +29,7 @@ jobs: uses: actions/checkout@v4 - name: Setup PNPM - uses: pnpm/action-setup@v2 + uses: pnpm/action-setup@v3 - name: Setup Node uses: actions/setup-node@v4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5b748c3adfa7..7e7ee094b8e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,7 +50,7 @@ jobs: uses: actions/checkout@v4 - name: Setup PNPM - uses: pnpm/action-setup@v2 + uses: pnpm/action-setup@v3 - name: Setup node@${{ matrix.NODE_VERSION }} uses: actions/setup-node@v4 @@ -80,7 +80,7 @@ jobs: uses: actions/checkout@v4 - name: Setup PNPM - uses: pnpm/action-setup@v2 + uses: pnpm/action-setup@v3 - name: Setup Node uses: actions/setup-node@v4 @@ -122,7 +122,7 @@ jobs: uses: actions/checkout@v4 - name: Setup PNPM - uses: pnpm/action-setup@v2 + uses: pnpm/action-setup@v3 - name: Setup node@${{ matrix.NODE_VERSION }} uses: actions/setup-node@v4 @@ -159,7 +159,7 @@ jobs: uses: actions/checkout@v4 - name: Setup PNPM - uses: pnpm/action-setup@v2 + uses: pnpm/action-setup@v3 - name: Setup node@${{ matrix.NODE_VERSION }} uses: actions/setup-node@v4 @@ -195,7 +195,7 @@ jobs: uses: actions/checkout@v4 - name: Setup PNPM - uses: pnpm/action-setup@v2 + uses: pnpm/action-setup@v3 - name: Setup node@${{ matrix.NODE_VERSION }} uses: actions/setup-node@v4 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 01a44d6a3132..cb2cdd59d2a7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,7 +33,7 @@ jobs: - uses: actions/checkout@v4 - name: Setup PNPM - uses: pnpm/action-setup@v2 + uses: pnpm/action-setup@v3 - name: Setup Node uses: actions/setup-node@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e6098e0959d7..eb5cd362e54b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@v4 - name: Setup PNPM - uses: pnpm/action-setup@v2 + uses: pnpm/action-setup@v3 - name: Setup Node uses: actions/setup-node@v4 @@ -65,7 +65,7 @@ jobs: env: DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} run: node .github/scripts/announce.mjs '${{ steps.changesets.outputs.publishedPackages }}' - + - name: Send message on Discord if: steps.changesets.outputs.published == 'true' env: diff --git a/.github/workflows/scripts.yml b/.github/workflows/scripts.yml index f7c5305e075c..df934876abd3 100644 --- a/.github/workflows/scripts.yml +++ b/.github/workflows/scripts.yml @@ -33,7 +33,7 @@ jobs: path: main - name: Setup PNPM - uses: pnpm/action-setup@v2 + uses: pnpm/action-setup@v3 - name: Setup Node uses: actions/setup-node@v4 diff --git a/.github/workflows/snapshot-release.yml b/.github/workflows/snapshot-release.yml index fa72d9964a67..88eadac31432 100644 --- a/.github/workflows/snapshot-release.yml +++ b/.github/workflows/snapshot-release.yml @@ -19,8 +19,8 @@ jobs: name: Create a snapshot release of a pull request if: ${{ github.repository_owner == 'withastro' && github.event.issue.pull_request && (contains(github.event.comment.body, '!preview') || contains(github.event.comment.body, '/preview') || contains(github.event.comment.body, '!snapshot') || contains(github.event.comment.body, '/snapshot')) }} runs-on: ubuntu-latest - permissions: - contents: read + permissions: + contents: read id-token: write issues: write pull-requests: write @@ -66,7 +66,7 @@ jobs: - run: git fetch origin main:main - name: Setup PNPM - uses: pnpm/action-setup@v2 + uses: pnpm/action-setup@v3 - name: Setup Node uses: actions/setup-node@v4 diff --git a/.github/workflows/test-hosts.yml b/.github/workflows/test-hosts.yml index 018f97162e98..e26e250d232b 100644 --- a/.github/workflows/test-hosts.yml +++ b/.github/workflows/test-hosts.yml @@ -22,7 +22,7 @@ jobs: uses: actions/checkout@v4 - name: Setup PNPM - uses: pnpm/action-setup@v2 + uses: pnpm/action-setup@v3 - name: Setup Node uses: actions/setup-node@v4