Skip to content

Commit

Permalink
fix: update web workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdip-b committed Dec 28, 2023
1 parent f49b7db commit add46dd
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/web.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
on:
push:
branches: [main]
paths: ['apps/web/**']
paths: ['apps/web/**', '.github/workflows/web.yaml']
pull_request:
paths: ['apps/web/**']

Expand All @@ -14,6 +13,17 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Install packages
run: |
pnpm i
Expand All @@ -27,14 +37,26 @@ jobs:
pnpm run test:web
deploy:
needs: validate
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
name: Lint
name: Deploy

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Install packages
run: |
pnpm i
Expand All @@ -47,5 +69,4 @@ jobs:
run: |
pnpm install --global vercel
vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

0 comments on commit add46dd

Please sign in to comment.