File tree Expand file tree Collapse file tree 7 files changed +1658
-28
lines changed Expand file tree Collapse file tree 7 files changed +1658
-28
lines changed Original file line number Diff line number Diff line change @@ -13,20 +13,27 @@ jobs:
13
13
steps :
14
14
- name : Checkout
15
15
uses : actions/checkout@v4
16
+
16
17
- name : Setup pnpm
17
18
uses : pnpm/action-setup@v4
19
+
18
20
- name : Use Node.js
19
21
uses : actions/setup-node@v4
20
22
with :
21
23
node-version-file : ' .nvmrc'
22
24
cache : ' pnpm'
25
+
23
26
- name : Installing dependencies
24
27
run : pnpm install
28
+
25
29
- name : Linting
26
30
run : pnpm lint
31
+
27
32
- name : Type checking
28
33
run : pnpm typecheck
34
+
29
35
- name : Testing
30
36
run : pnpm coverage
37
+
31
38
- name : Building
32
39
run : pnpm build
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - main
7
+ types :
8
+ - closed
9
+
10
+ permissions :
11
+ contents : read # for checkout
12
+
13
+ jobs :
14
+ release :
15
+ name : Release
16
+ if : github.event.pull_request.merged == true
17
+ runs-on : ubuntu-latest
18
+ permissions :
19
+ contents : write # to be able to publish a GitHub release
20
+ issues : write # to be able to comment on released issues
21
+ pull-requests : write # to be able to comment on released pull requests
22
+ id-token : write # to enable use of OIDC for npm provenance
23
+ steps :
24
+ - name : Checkout
25
+ uses : actions/checkout@v4
26
+ with :
27
+ fetch-depth : 0
28
+
29
+ - name : Setup pnpm
30
+ uses : pnpm/action-setup@v4
31
+
32
+ - name : Use Node.js
33
+ uses : actions/setup-node@v4
34
+ with :
35
+ node-version-file : ' .nvmrc'
36
+ cache : ' pnpm'
37
+
38
+ - name : Installing dependencies
39
+ run : pnpm install
40
+
41
+ - name : Building
42
+ run : pnpm build
43
+
44
+ # https://github.com/pnpm/pnpm/issues/7909
45
+ # - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
46
+ # run: npm audit signatures
47
+
48
+ - name : Release
49
+ env :
50
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
52
+ NPM_CONFIG_PROVENANCE : true
53
+ run : npx --no semantic-release
Original file line number Diff line number Diff line change 6
6
" commitlint" ,
7
7
" commitlintplugin" ,
8
8
" nvmrc" ,
9
+ " OIDC" ,
9
10
" postbuild" ,
10
11
" tsbuildinfo" ,
11
12
" typecheck" ,
Original file line number Diff line number Diff line change 50
50
"prettier" : " @webdeveric/prettier-config" ,
51
51
"dependencies" : {
52
52
"@commitlint/types" : " ^19.0.3" ,
53
- "@webdeveric/utils" : " ^0.32.0" ,
54
53
"cspell-lib" : " ^8.12.1"
55
54
},
56
55
"devDependencies" : {
57
- "@types/node" : " ^20.14.12 " ,
56
+ "@types/node" : " ^22.0.0 " ,
58
57
"@vitest/coverage-v8" : " ^2.0.4" ,
59
58
"@webdeveric/eslint-config-ts" : " ^0.8.0" ,
60
59
"@webdeveric/prettier-config" : " ^0.3.0" ,
67
66
"lint-staged" : " ^15.2.7" ,
68
67
"prettier" : " ^3.3.3" ,
69
68
"rimraf" : " ^6.0.1" ,
69
+ "semantic-release" : " ^24.0.0" ,
70
70
"typescript" : " ^5.5.4" ,
71
71
"validate-package-exports" : " ^0.6.0" ,
72
72
"vitest" : " ^2.0.4"
You can’t perform that action at this time.
0 commit comments