From 3df811a3bd00dfd5d04cbd16e4d9015a416c319d Mon Sep 17 00:00:00 2001 From: Martin Trapp <94928215+martrapp@users.noreply.github.com> Date: Thu, 29 Feb 2024 05:49:07 +0100 Subject: [PATCH] Updates deprecated Node.js 16 github actions (#10270) --- .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 59bc9cca5b..44537f1338 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 8484b8bb2b..736db549c4 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 5b748c3adf..7e7ee094b8 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 01a44d6a31..cb2cdd59d2 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 e6098e0959..eb5cd362e5 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 f7c5305e07..df934876ab 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 fa72d9964a..88eadac314 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 018f97162e..e26e250d23 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