Skip to content

Commit

Permalink
Use pnpm for building in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Einlar committed May 14, 2024
1 parent 03f253d commit 04de736
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,27 @@ on:

jobs:
build-and-deploy:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [20.x]
node-version: [20.13.1]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: npm run build --if-present
cache: pnpm
- name: Install Dependencies
run: pnpm i --frozen-lockfile
- name: Build
run: pnpm run build
- uses: a7ul/tar-action@v1.1.0
with:
command: c
Expand Down

0 comments on commit 04de736

Please sign in to comment.