Skip to content

Commit cd0f4ad

Browse files
committed
add .node-version
1 parent 4c699e9 commit cd0f4ad

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ jobs:
5353
- uses: pnpm/action-setup@v2
5454
- uses: actions/setup-node@v4
5555
with:
56-
node-version: 20
56+
node-version-file: .node-version
5757
cache: pnpm
5858
- run: pnpm install --frozen-lockfile
5959
- run: pnpm run build
6060
env:
6161
REDIRECT: true
6262
- uses: peaceiris/actions-gh-pages@v4
63-
if: github.ref == 'refs/heads/main'
63+
if: github.ref_name == 'main'
6464
with:
6565
github_token: ${{ secrets.GITHUB_TOKEN }}
6666
publish_dir: ./build

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.14.0

0 commit comments

Comments
 (0)