From a8fe28ab56371dc1999b900da0d938d21961369b Mon Sep 17 00:00:00 2001 From: Jesse Shawl Date: Mon, 18 Mar 2024 19:54:45 -0500 Subject: [PATCH] deploy --- .github/workflows/node.js.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 6ef0423..893ffc3 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -7,14 +7,11 @@ on: branches: [ "main" ] jobs: - build: - + test: runs-on: ubuntu-latest - strategy: matrix: node-version: [20.x] - steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} @@ -24,3 +21,11 @@ jobs: cache: 'npm' - run: npm ci - run: npm test + deploy: + runs-on: ubuntu-latest + needs: test + if: github.ref == 'refs/heads/main' + environment: production + steps: + - name: Deploy + run: npx wrangler deploy