Commit 94ec5cf 1 parent 4dc6c2c commit 94ec5cf Copy full SHA for 94ec5cf
File tree 2 files changed +17
-3
lines changed
2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 8
8
- beta
9
9
- main
10
10
11
+ permissions :
12
+ contents : read # for checkout
13
+
11
14
jobs :
12
15
test :
13
16
runs-on : ${{ matrix.platform }}
31
34
- run : pnpm lint
32
35
33
36
release :
37
+ permissions :
38
+ contents : write # to be able to publish a GitHub release
39
+ issues : write # to be able to comment on released issues
40
+ pull-requests : write # to be able to comment on released pull requests
41
+ id-token : write # to enable use of OIDC for npm provenance
34
42
name : ' Semantic release'
35
43
needs : test
36
44
runs-on : ubuntu-latest
@@ -51,10 +59,15 @@ jobs:
51
59
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
52
60
NPM_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
53
61
# Build docs
54
- - run : npm run docs:build
62
+ - run : pnpm docs:build
63
+ - uses : tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92 # v1
64
+ id : generate-token
65
+ with :
66
+ app_id : ${{ secrets.ECOSCRIPT_APP_ID }}
67
+ private_key : ${{ secrets.ECOSCRIPT_APP_PRIVATE_KEY }}
55
68
# Deploy docs
56
69
- uses : peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3
57
70
if : ${{ github.ref == 'refs/heads/main' }}
58
71
with :
59
- github_token : ${{ secrets.GITHUB_TOKEN }}
72
+ github_token : ${{ steps.generate-token.outputs.token }}
60
73
publish_dir : ./docs
Original file line number Diff line number Diff line change 145
145
"node" : " ^14.13.1 || >=16.0.0"
146
146
},
147
147
"publishConfig" : {
148
- "access" : " public"
148
+ "access" : " public" ,
149
+ "provenance" : true
149
150
}
150
151
}
You can’t perform that action at this time.
0 commit comments