From 23f2e1833291198e16772df1296fa47eb697ac02 Mon Sep 17 00:00:00 2001 From: ThatGuySam Date: Sat, 12 Aug 2023 14:32:44 -0500 Subject: [PATCH] Use pnpm on Wrangler Action --- .github/workflows/deploy-cloudflare-workers.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-cloudflare-workers.yml b/.github/workflows/deploy-cloudflare-workers.yml index 513e971..0724710 100644 --- a/.github/workflows/deploy-cloudflare-workers.yml +++ b/.github/workflows/deploy-cloudflare-workers.yml @@ -13,24 +13,33 @@ jobs: runs-on: ubuntu-latest name: Deploy steps: - - uses: actions/checkout@master + - name: Checkout + uses: actions/checkout@master + + - name: Setup PNPM + uses: pnpm/action-setup@v2 + with: + run_install: false + - name: Write Wrangler configs run: | echo ${{ secrets.WRANGLER_ENV }} | base64 -d > doesitarm-default/.env cat doesitarm-default/.env echo ${{ secrets.WRANGLER_TOML }} | base64 -d > doesitarm-default/wrangler.toml cat doesitarm-default/wrangler.toml - npm install + pnpm install # Analytics Worker echo ${{ secrets.ANALYTICS_WRANGER_TOML }} | base64 -d > workers/analytics/wrangler.toml cat workers/analytics/wrangler.toml - npm install + pnpm install + - name: Deploy Default Worker uses: cloudflare/wrangler-action@1.3.0 with: apiToken: ${{ secrets.CF_API_TOKEN }} workingDirectory: 'doesitarm-default' + - name: Deploy Analytics Worker uses: cloudflare/wrangler-action@1.3.0 with: