Skip to content

Commit

Permalink
Housekeeping (#58)
Browse files Browse the repository at this point in the history
- Upgrade pnpm to 9.12.2
- Fix github workflow file: pnpm command has to be run after node installation
  • Loading branch information
vraravam authored Oct 17, 2024
1 parent ae8b9b7 commit c26e626
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 20 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,20 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

- name: Use Node.js specified in the '.nvmrc' file
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"

node-version-file: '.nvmrc'
- name: Install pnpm
run: npm i -gf "pnpm@$(node -p 'require("./package.json").engines.pnpm')" && pnpm -v

- run: pnpm install

- run: pnpm run lint

- run: pnpm run build
uses: pnpm/action-setup@v4
- name: Install node dependencies recursively
uses: nick-fields/retry@v3
with:
command: pnpm i
timeout_minutes: 15
max_attempts: 3
retry_on: error
- name: Build 🔧
run: |
pnpm run lint
pnpm run build
18 changes: 10 additions & 8 deletions .github/workflows/publish-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,22 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

- name: Use Node.js specified in the '.nvmrc' file
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"

node-version-file: '.nvmrc'
- name: Install pnpm
run: npm i -gf "pnpm@$(node -p 'require("./package.json").engines.pnpm')" && pnpm -v

- name: Install and Build 🔧
uses: pnpm/action-setup@v4
- name: Install node dependencies recursively
uses: nick-fields/retry@v3
with:
command: pnpm i
timeout_minutes: 15
max_attempts: 3
retry_on: error
- name: Build 🔧
run: |
pnpm i
pnpm run export
- uses: JamesIves/github-pages-deploy-action@v4
with:
folder: out
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
"private": true,
"engines": {
"node": "20.18.0",
"pnpm": "9.12.0"
"pnpm": "9.12.2"
},
"engine-strict": true,
"volta": {
"node": "20.18.0",
"pnpm": "9.12.0"
"pnpm": "9.12.2"
},
"packageManager": "pnpm@9.12.2",
"scripts": {
"dev": "next dev",
"build": "next build",
Expand Down

0 comments on commit c26e626

Please sign in to comment.