Skip to content

Commit

Permalink
ci: updated ci build and synthesize jobs to use pnpm
Browse files Browse the repository at this point in the history
re: #87
  • Loading branch information
flamingquaks committed Jun 19, 2024
1 parent ac5dc84 commit eb71d26
Showing 1 changed file with 40 additions and 5 deletions.
45 changes: 40 additions & 5 deletions .github/workflows/build-on-every-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,37 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

cache: 'pnpm'

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: npm ci
run: pnpm install

- name: Build project
run: npm run build
run: pnpm run build

- name: Upload UI Artifact
uses: actions/upload-artifact@v4
Expand All @@ -43,14 +63,29 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: npm ci
run: pnpm install

- name: Download UI Artifact
uses: actions/download-artifact@v4
Expand Down

0 comments on commit eb71d26

Please sign in to comment.