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