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 1717jobs :
1818 build :
1919 runs-on : ubuntu-20.04
20+ permissions :
21+ id-token : write # Enable OIDC
22+ pull-requests : write
23+ contents : write
2024
2125 steps :
2226 -
2327 name : Checkout code
24282529
30+ - uses : chainguard-dev/actions/setup-gitsign@main
31+
2632 -
27332834 with :
4753
4854 - name : Setup git
4955 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
5257
5358 -
5459 name : Build
@@ -57,13 +62,12 @@ jobs:
5762 git add -A dist
5863
5964 - name : Publish
65+ env :
66+ GH_TOKEN : ${{ github.token }}
6067 run : |
6168 npm version ${{ github.event.inputs.version }} --no-git-tag-version
6269 VERSION=$(node -p "require('./package.json').version")
6370 git commit -m "release: $VERSION" -a
64- git tag "$VERSION" -m "release: $VERSION"
65- git push --follow-tags
71+ git push
6672
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