Skip to content

Commit 69901c1

Browse files
authored
ci: use setup-vp action and update actions/checkout to v6 (#1)
## Summary - Replace separate `pnpm/action-setup`, `actions/setup-node`, and `pnpm install` steps with `voidzero-dev/setup-vp@v1` - Update `actions/checkout` from v4 to v6 - Use `vp` commands directly instead of `pnpm vp` ## Test plan - [x] Verify CI workflow passes with setup-vp action - [ ] Verify deploy workflow runs successfully 🤖 Generated with [Claude Code](https://claude.com/claude-code)
1 parent b6e3244 commit 69901c1

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ jobs:
99
test:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v4
13-
- uses: pnpm/action-setup@v4
14-
- uses: actions/setup-node@v4
12+
- uses: actions/checkout@v6
13+
- uses: voidzero-dev/setup-vp@v1
1514
with:
16-
node-version: lts/*
17-
cache: pnpm
15+
cache: true
1816
registry-url: https://npm.pkg.github.com
19-
- run: pnpm install
2017
env:
21-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22-
- run: pnpm vp check
23-
- run: pnpm vp test
18+
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
19+
- run: vp check
20+
- run: vp build
21+
- run: vp test

.github/workflows/deploy.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,20 @@ name: Deploy
22
on:
33
push:
44
branches: [main]
5+
workflow_dispatch:
56

67
jobs:
78
deploy:
89
runs-on: ubuntu-latest
910
steps:
10-
- uses: actions/checkout@v4
11-
- uses: pnpm/action-setup@v4
12-
- uses: actions/setup-node@v4
11+
- uses: actions/checkout@v6
12+
- uses: voidzero-dev/setup-vp@v1
1313
with:
14-
node-version: lts/*
15-
cache: pnpm
16-
- run: pnpm install
17-
- run: pnpm void deploy
14+
cache: true
15+
registry-url: https://npm.pkg.github.com
16+
env:
17+
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
18+
- run: vp void deploy
1819
env:
1920
VOID_TOKEN: ${{ secrets.VOID_TOKEN }}
21+
VOID_PROJECT: ${{ secrets.VOID_PROJECT }}

0 commit comments

Comments
 (0)