Skip to content

Commit 6127513

Browse files
committed
chore: setup pnpm
1 parent 7174d96 commit 6127513

2 files changed

Lines changed: 21 additions & 12 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ jobs:
1515
uses: actions/setup-node@v4
1616
with:
1717
node-version-file: '.nvmrc'
18+
cache: 'pnpm'
1819

1920
- name: Setup pnpm
2021
uses: pnpm/action-setup@v4
22+
with:
23+
version: 10
2124

2225
- name: Install dependencies
2326
run: pnpm install

.github/workflows/deploy.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Deploy to GitHub Pages
22

33
on:
44
push:
5-
branches: [main]
5+
# branches: [main]
66
workflow_dispatch:
77

88
permissions:
@@ -25,6 +25,12 @@ jobs:
2525
uses: actions/setup-node@v4
2626
with:
2727
node-version-file: '.nvmrc'
28+
cache: 'pnpm'
29+
30+
- name: Setup pnpm
31+
uses: pnpm/action-setup@v4
32+
with:
33+
version: 10
2834

2935
- name: Install dependencies
3036
run: pnpm install
@@ -38,14 +44,14 @@ jobs:
3844
with:
3945
path: ./dist
4046

41-
deploy:
42-
if: github.event_name != 'pull_request'
43-
environment:
44-
name: github-pages
45-
url: ${{ steps.deployment.outputs.page_url }}
46-
runs-on: ubuntu-latest
47-
needs: build
48-
steps:
49-
- name: Deploy to GitHub Pages
50-
id: deployment
51-
uses: actions/deploy-pages@v4
47+
# deploy:
48+
# if: github.event_name != 'pull_request'
49+
# environment:
50+
# name: github-pages
51+
# url: ${{ steps.deployment.outputs.page_url }}
52+
# runs-on: ubuntu-latest
53+
# needs: build
54+
# steps:
55+
# - name: Deploy to GitHub Pages
56+
# id: deployment
57+
# uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)