Skip to content

Commit f15c6d4

Browse files
authored
add vp (#22)
1 parent e90d8a6 commit f15c6d4

File tree

5 files changed

+930
-13
lines changed

5 files changed

+930
-13
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,22 @@ on:
88

99
jobs:
1010
test-lint-build:
11+
permissions:
12+
contents: read
13+
packages: read
14+
1115
runs-on: ubuntu-latest
12-
16+
1317
steps:
1418
- name: Checkout code
15-
uses: actions/checkout@v4
19+
uses: actions/checkout@v5
1620

1721
- name: Setup Node.js LTS
1822
uses: actions/setup-node@v4
1923
with:
2024
node-version: 'lts/*'
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2127

2228
- name: Setup pnpm
2329
uses: pnpm/action-setup@v4
@@ -37,6 +43,8 @@ jobs:
3743
3844
- name: Install dependencies
3945
run: pnpm install --frozen-lockfile
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4048

4149
- name: Lint code
4250
run: pnpm lint
@@ -55,4 +63,4 @@ jobs:
5563
else
5664
echo "❌ Build artifacts not found"
5765
exit 1
58-
fi
66+
fi

.github/workflows/copilot-setup-steps.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,29 @@ jobs:
2222
copilot-setup-steps:
2323
name: Setup Development Environment for Copilot
2424
runs-on: ubuntu-latest
25+
permissions:
26+
contents: read
27+
packages: read
2528
steps:
26-
# Checkout full repo for git history.
2729
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
28-
with:
29-
persist-credentials: false
3030

3131
- name: Setup Node.js
3232
uses: actions/setup-node@v4
3333
with:
34-
node-version: '20'
34+
node-version: 'lts/*'
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3537

3638
- name: Setup pnpm
3739
uses: pnpm/action-setup@v4
3840

3941
- name: Install dependencies
4042
run: pnpm install
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4145

4246
- name: Run lint
4347
run: pnpm lint
4448

4549
- name: Build project
46-
run: pnpm build
50+
run: pnpm build

.npmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
2+
@vite-plus:registry=https://npm.pkg.github.com/
3+
@voidzero-dev:registry=https://npm.pkg.github.com/

package.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,22 @@
1212
"build-deploy": "pnpm lint && pnpm build",
1313
"rolldown:list": "node tool/override-rolldown.js --list",
1414
"rolldown:use": "node tool/override-rolldown.js",
15-
"rolldown:stats": "node tool/override-rolldown.js --stats"
15+
"rolldown:stats": "node tool/override-rolldown.js --stats",
16+
"vp": "vp"
1617
},
17-
"keywords": ["dashboard", "charts", "metrics", "frontend"],
18+
"keywords": [
19+
"dashboard",
20+
"charts",
21+
"metrics",
22+
"frontend"
23+
],
1824
"author": "",
1925
"license": "MIT",
2026
"devDependencies": {
2127
"@types/node": "^20.0.0",
28+
"@voidzero-dev/global": "0.0.0-29f27bd710eb7aa75e16db0ba547db379543e148",
2229
"oxlint": "^1.12.0",
2330
"typescript": "^5.0.0"
2431
},
2532
"packageManager": "[email protected]"
26-
}
33+
}

0 commit comments

Comments
 (0)