From b02f3cfd1a53036d26f04f129aa97bac11277a5d Mon Sep 17 00:00:00 2001 From: Natalie Bravo Date: Wed, 20 Nov 2024 22:12:29 -0300 Subject: [PATCH] fix: update remaining actions in the workflow --- .github/workflows/edge-gateway-link.yml | 36 ++++++++++++++----------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/.github/workflows/edge-gateway-link.yml b/.github/workflows/edge-gateway-link.yml index d1a3e14..fb2df3d 100644 --- a/.github/workflows/edge-gateway-link.yml +++ b/.github/workflows/edge-gateway-link.yml @@ -17,11 +17,14 @@ jobs: runs-on: ubuntu-latest name: Test steps: - - uses: actions/checkout@v2 - - uses: pnpm/action-setup@v2.0.1 + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 with: - version: 6.32.x - - uses: actions/setup-node@v2 + version: 7.0.x + - uses: actions/setup-node@v4 + with: + node-version: 18 + cache: 'pnpm' - run: pnpm install - run: pnpm test:w3link-edge-gateway deploy-staging: @@ -30,16 +33,17 @@ jobs: runs-on: ubuntu-latest needs: test steps: - - uses: actions/checkout@v2 - - uses: pnpm/action-setup@v2.0.1 + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 with: - version: 6.32.x - - uses: actions/setup-node@v2 + version: 7.0.x + - uses: actions/setup-node@v4 with: + node-version: 18 cache: 'pnpm' - run: pnpm install - name: Publish app - uses: cloudflare/wrangler-action@2.0.0 + uses: cloudflare/wrangler-action@v3 env: ENV: 'staging' # inform the build process what the env is SENTRY_TOKEN: ${{secrets.SENTRY_TOKEN}} @@ -73,18 +77,18 @@ jobs: - deploy-staging - changelog steps: - - uses: actions/checkout@v2 - - uses: pnpm/action-setup@v2.0.1 + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 with: - version: 6.32.x - - uses: actions/setup-node@v2 + version: 7.0.x + - uses: actions/setup-node@v4 with: - cache: 'pnpm' - node-version: 16 + node-version: 18 registry-url: 'https://registry.npmjs.org' + cache: 'pnpm' - run: pnpm install - name: Deploy - uses: cloudflare/wrangler-action@2.0.0 + uses: cloudflare/wrangler-action@v3 env: ENV: 'production' # inform the build process what the env is SENTRY_TOKEN: ${{ secrets.SENTRY_TOKEN }}