File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 6
6
inputs :
7
7
version :
8
8
description : Base version to use for the release
9
- required : true
10
9
type : string
10
+ default : ' 0.0.0'
11
11
env :
12
12
FORCE_COLOR : 3 # Diplay chalk colors
13
13
14
14
jobs :
15
15
snapshot :
16
16
name : Deployment
17
17
runs-on : ubuntu-24.04
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
18
23
steps :
19
24
- name : Generate snapshot version
20
25
id : version
37
42
run : |
38
43
pnpm pkg set version=${{ steps.version.outputs.version }}
39
44
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
40
- pnpm publish --access public --tag snapshot --no-git-checks
45
+ pnpm publish --access public --provenance -- tag snapshot --no-git-checks
41
46
rm -f .npmrc
42
47
env :
43
48
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments