Skip to content

Commit

Permalink
Update pnpm installation command in GitHub Actions workflow
Browse files Browse the repository at this point in the history
mazwrld committed Apr 28, 2024
1 parent e7a1991 commit b503894
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -58,13 +58,23 @@ jobs:
needs: Install
if: github.ref != 'refs/heads/main'
steps:
- uses: pnpm/action-setup@v3
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false

- uses: actions/checkout@v4
- name: Install Vercel CLI
run: npm install --global vercel@latest
run: pnpm install --global vercel@latest

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}

- name: Build Project Artifacts
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}

@@ -73,12 +83,22 @@ jobs:
needs: Install
if: github.ref == 'refs/heads/main'
steps:
- uses: pnpm/action-setup@v3
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false

- uses: actions/checkout@v4
- name: Install Vercel CLI
run: npm install --global vercel@latest
run: pnpm install --global vercel@latest

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}

- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

0 comments on commit b503894

Please sign in to comment.