Skip to content

Commit b4507c6

Browse files
committed
ci: enable OIDC
1 parent 9f638f7 commit b4507c6

File tree

3 files changed

+9
-29
lines changed

3 files changed

+9
-29
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,9 @@ on:
77

88
jobs:
99
release:
10-
runs-on: ubuntu-latest
10+
uses: sxzz/workflows/.github/workflows/release.yml@v1
11+
with:
12+
publish: true
1113
permissions:
1214
contents: write
13-
steps:
14-
- uses: actions/checkout@v3
15-
with:
16-
fetch-depth: 0
17-
18-
- uses: actions/setup-node@v3
19-
with:
20-
node-version: lts/*
21-
22-
- run: npx changelogithub
23-
env:
24-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
15+
id-token: write

eslint.config.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
11
// @ts-check
22
import antfu from '@antfu/eslint-config'
33

4-
export default antfu(
5-
{
6-
ignores: [
7-
// eslint ignore globs here
8-
],
9-
},
10-
{
11-
rules: {
12-
// overrides
13-
},
14-
},
15-
)
4+
export default antfu()

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@
6767
},
6868
"scripts": {
6969
"dev": "tsup --watch",
70-
"example:dev": "npm -C examples/vite run dev",
71-
"example:build": "npm -C examples/vite run build",
70+
"example:dev": "pnpm -C examples/vite run dev",
71+
"example:build": "pnpm -C examples/vite run build",
7272
"build": "tsup",
7373
"build:fix": "tsx scripts/postbuild.ts",
7474
"test": "vitest",
7575
"test:update": "vitest -u",
7676
"lint": "eslint .",
77-
"prepublishOnly": "npm run build",
78-
"release": "bumpp && npm publish"
77+
"prepublishOnly": "pnpm run build",
78+
"release": "bumpp"
7979
},
8080
"peerDependencies": {
8181
"vite": "^2.0.0 || ^3.0.0-0 || ^4.0.0-0 || ^5.0.0-0 || ^6.0.0 || ^7.0.0"

0 commit comments

Comments
 (0)