Skip to content

Commit 359e719

Browse files
committed
chore: default read permissions
1 parent 6e18f16 commit 359e719

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,17 @@ name: Release
22

33
on:
44
workflow_dispatch:
5+
push:
6+
branches:
7+
- 09-17-chore_default_read_permissions
58

69
permissions: {}
710

811
jobs:
912
build-rust:
1013
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
1116
strategy:
1217
fail-fast: false
1318
matrix:
@@ -121,7 +126,7 @@ jobs:
121126
sed -i 's/"version": "0.0.0"/"version": "0.0.0-${{ github.sha }}"/' packages/cli/package.json
122127
123128
# Setup node correctly for publishing to github registry
124-
- uses: actions/setup-node@v5
129+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
125130
with:
126131
node-version-file: .node-version
127132
registry-url: "https://npm.pkg.github.com"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"copy-bindings": "cp -r ./packages/cli/binding/*.node ./packages/cli/dist && cp -r ./packages/cli/binding/*.node ./packages/global/dist",
1010
"install-global-cli": "npm install -g ./packages/global",
1111
"typecheck": "tsc -b tsconfig.json",
12-
"lint": "vite lint && vite run typecheck",
12+
"lint": "vite lint --type-aware && vite run typecheck",
1313
"test": "vite test && pnpm -r snap-test",
1414
"prepare": "husky"
1515
},

packages/global/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
"snap-test": "snap-test"
2323
},
2424
"dependencies": {
25+
"@voidzero-dev/vite-plus": "workspace:*",
2526
"oxlint": "catalog:",
2627
"rolldown-vite": "catalog:",
2728
"vitest": "catalog:"
2829
},
2930
"devDependencies": {
30-
"@voidzero-dev/vite-plus": "workspace:*",
3131
"@voidzero-dev/vite-plus-tools": "workspace:",
3232
"rolldown": "catalog:"
3333
},

0 commit comments

Comments
 (0)