File tree 6 files changed +106
-84
lines changed
6 files changed +106
-84
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
name : CI
2
2
3
- on : [pull_request]
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ pull_request :
9
+ branches :
10
+ - main
4
11
5
12
concurrency :
6
13
group : ${{ github.workflow }}-${{ github.ref }}
7
14
cancel-in-progress : true
8
15
9
16
jobs :
10
- build :
17
+ lint :
18
+ runs-on : ubuntu-latest
19
+ steps :
20
+ - uses : actions/checkout@v4
21
+
22
+ - name : Install pnpm
23
+ uses : pnpm/action-setup@v4
24
+
25
+ - name : Set node
26
+ uses : actions/setup-node@v4
27
+ with :
28
+ node-version : lts/*
29
+
30
+ - name : Install
31
+ run : pnpm install
32
+
33
+ - name : Lint
34
+ run : pnpm lint
35
+
36
+ typecheck :
11
37
runs-on : ubuntu-latest
12
38
steps :
13
- - name : Checkout Repo
14
- uses : actions/checkout@v4
39
+ - uses : actions/checkout@v4
40
+
41
+ - name : Install pnpm
42
+ uses : pnpm/action-setup@v4
43
+
44
+ - name : Set node
45
+ uses : actions/setup-node@v4
46
+ with :
47
+ node-version : lts/*
48
+
49
+ - name : Install
50
+ run : pnpm install
51
+
52
+ - name : Build
53
+ run : pnpm build
54
+
55
+ - name : Typecheck
56
+ run : pnpm typecheck
57
+
58
+ test :
59
+ runs-on : ubuntu-latest
60
+ steps :
61
+ - uses : actions/checkout@v4
62
+
63
+ - name : Install pnpm
64
+ uses : pnpm/action-setup@v4
65
+
66
+ - name : Set node
67
+ uses : actions/setup-node@v4
68
+ with :
69
+ node-version : lts/*
70
+
71
+ - name : Install
72
+ run : pnpm install
15
73
16
- - name : Setup Continuous integration
17
- uses : ./.github/cache
74
+ - name : Build
75
+ run : pnpm build
18
76
19
- - run : pnpm run lint && pnpm run build
77
+ - name : Test
78
+ run : pnpm test
Original file line number Diff line number Diff line change 6
6
7
7
on :
8
8
push :
9
- branches :
10
- - release
9
+ branches : [main]
10
+
11
+ workflow_dispatch :
11
12
12
- # This is what will cancel the workflow
13
13
concurrency :
14
14
group : ${{ github.workflow }}-${{ github.ref }}
15
15
cancel-in-progress : true
16
16
17
17
jobs :
18
- Deploy-Deployment :
18
+ deploy :
19
19
runs-on : ubuntu-latest
20
20
steps :
21
- - name : Checkout Repo
22
- uses : actions/checkout@v4
21
+ - uses : actions/checkout@v4
22
+
23
+ - name : Install pnpm
24
+ uses : pnpm/action-setup@v4
23
25
24
- - name : Setup Continuous integration
25
- uses : ./.github/cache
26
+ - name : Set node
27
+ uses : actions/setup-node@v4
28
+ with :
29
+ node-version : lts/*
30
+
31
+ - name : Install
32
+ run : pnpm install
26
33
27
34
- name : Install Vercel CLI
28
35
run : pnpm install --global vercel@latest
32
39
run : vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
33
40
- name : Deploy Project Artifacts to Vercel
34
41
run : vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
35
-
36
- # - name: Notify Discord
37
- # if: failure()
38
- # uses: hunghg255/action-notifications@master
39
- # with:
40
- # discord_webhook: ${{ secrets.CI_CD_DISCORD_URL }}
41
- # title: "Deploy dev failed"
42
- # qrcode: https://dev-web.degenpark.io
43
- # description: "Test here: https://dev-web.degenpark.io"
44
-
45
- # notifification:
46
- # needs: Deploy-Production
47
- # runs-on: ubuntu-latest
48
- # permissions:
49
- # packages: write
50
- # contents: read
51
-
52
- # steps:
53
- # - uses: hunghg255/action-notifications@master
54
- # if: always()
55
- # with:
56
- # discord_webhook: ${{ secrets.CI_CD_DISCORD_URL }}
57
- # title: "Deploy dev successfully"
58
- # qrcode: https://dev-web.degenpark.io
59
- # description: "Test here: https://dev-web.degenpark.io"
Original file line number Diff line number Diff line change @@ -14,18 +14,31 @@ concurrency:
14
14
15
15
jobs :
16
16
release :
17
+ permissions :
18
+ id-token : write
19
+ contents : write
17
20
runs-on : ubuntu-latest
18
21
steps :
19
- - name : Checkout Repo
20
- uses : actions/checkout@v4
22
+ - uses : actions/checkout@v4
23
+ with :
24
+ fetch-depth : 0
21
25
22
- - name : Setup Continuous integration
23
- uses : ./.github/cache
26
+ - name : Install pnpm
27
+ uses : pnpm/action-setup@v4
24
28
25
- - run : pnpm run publish
26
- env :
27
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
29
+ - name : Set node
30
+ uses : actions/setup-node@v4
31
+ with :
32
+ node-version : lts/*
33
+ registry-url : https://registry.npmjs.org/
34
+
35
+ - name : Install
36
+ run : pnpm install
28
37
29
- - run : pnpm dlx changeloggithub@latest
38
+ - run : npx changeloggithub@latest
30
39
env :
31
40
GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
41
+
42
+ - run : pnpm run publish
43
+ env :
44
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 10
10
},
11
11
"dependencies" : {
12
12
"@shikijs/transformers" : " ^1.10.3" ,
13
- "js-utils-es" : " ^1.0.7 " ,
13
+ "js-utils-es" : " workspace:* " ,
14
14
"prettier" : " ^3.3.2" ,
15
15
"shiki" : " ^1.10.3"
16
16
},
Original file line number Diff line number Diff line change 199
199
"format" : " prettier --write ." ,
200
200
"prepare" : " git-scm-hooks" ,
201
201
"prepublishOnly" : " npm run build" ,
202
- "release" : " bumpp --commit --push --tag && npm publish " ,
202
+ "release" : " bumpp --commit --push --tag" ,
203
203
"docs:dev" : " pnpm run -C ./docs dev" ,
204
204
"docs:preview" : " pnpm run -C ./docs preview" ,
205
205
"docs:build" : " pnpm run -C ./docs build" ,
206
206
"verify-commit" : " verify-commit-msg" ,
207
- "gen-changelog" : " esno ./scripts/genFuncUtils.ts && esno ./scripts/changelog.ts"
207
+ "gen-changelog" : " esno ./scripts/genFuncUtils.ts && esno ./scripts/changelog.ts" ,
208
+ "typecheck" : " tsc --noEmit"
208
209
},
209
210
"devDependencies" : {
210
211
"@antfu/eslint-config" : " ^2.22.0" ,
You can’t perform that action at this time.
0 commit comments