Skip to content

Commit

Permalink
build: install pnpm first
Browse files Browse the repository at this point in the history
Signed-off-by: rare-magma <[email protected]>
  • Loading branch information
rare-magma committed Oct 13, 2023
1 parent adf959d commit 1d8e02c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,21 @@ jobs:
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Install pnpm
uses: pnpm/action-setup@v2

- name: Setup Node
uses: actions/setup-node@v3
with:
cache: "pnpm"

- name: Install dependencies
run: pnpm clean-install

- name: Build
run: pnpm build

- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ jobs:
with:
persist-credentials: false

- name: Install pnpm
uses: pnpm/action-setup@v2

- name: Setup Node
uses: actions/setup-node@v3
with:
cache: "pnpm"

- name: Install pnpm
uses: pnpm/action-setup@v2

- name: Install dependencies
run: pnpm clean-install
run: pnpm install

- name: Run tests
run: pnpm test -- --run
Expand Down

0 comments on commit 1d8e02c

Please sign in to comment.