File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 17
17
jobs :
18
18
build :
19
19
runs-on : ubuntu-20.04
20
+ permissions :
21
+ id-token : write # Enable OIDC
22
+ pull-requests : write
23
+ contents : write
20
24
21
25
steps :
22
26
-
23
27
name : Checkout code
24
28
25
29
30
+ - uses : chainguard-dev/actions/setup-gitsign@main
31
+
26
32
-
27
33
28
34
with :
47
53
48
54
- name : Setup git
49
55
run : |
50
- git config user.name "GitHub Actions Bot"
51
- git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
56
+ git config --global tag.gpgsign true
52
57
53
58
-
54
59
name : Build
@@ -57,13 +62,12 @@ jobs:
57
62
git add -A dist
58
63
59
64
- name : Publish
65
+ env :
66
+ GH_TOKEN : ${{ github.token }}
60
67
run : |
61
68
npm version ${{ github.event.inputs.version }} --no-git-tag-version
62
69
VERSION=$(node -p "require('./package.json').version")
63
70
git commit -m "release: $VERSION" -a
64
- git tag "$VERSION" -m "release: $VERSION"
65
- git push --follow-tags
71
+ git push
66
72
67
- -
68
- name : GitHub Release
69
-
73
+ gh release create $VERSION --generate-notes
You can’t perform that action at this time.
0 commit comments