Skip to content

Commit

Permalink
Implement CorePack, Node and use pnpm instead of npm.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kichura authored Mar 2, 2024
1 parent 3e4d31c commit d053e55
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/deploy-pr-preview.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Deploy PR preview

on:
pull_request:
types:
Expand All @@ -8,20 +7,24 @@ on:
- synchronize

concurrency: preview-${{ github.ref }}

jobs:
deploy-preview:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Enable CorePack
run: corepack enable
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
check-latest: true
- name: Install and Build
run: |
npm install
npm run build
pnpm install
pnpm run build
- name: Deploy PR Preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./build/
source-dir: ./build/

0 comments on commit d053e55

Please sign in to comment.