-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60e6ca7
commit 56cdd06
Showing
1 changed file
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,12 +17,18 @@ on: | |
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
permissions: | ||
id-token: write # Enable OIDC | ||
pull-requests: write | ||
contents: write | ||
|
||
steps: | ||
- | ||
name: Checkout code | ||
uses: actions/[email protected] | ||
|
||
- uses: chainguard-dev/actions/setup-gitsign@main | ||
|
||
- | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -47,8 +53,7 @@ jobs: | |
- name: Setup git | ||
run: | | ||
git config user.name "GitHub Actions Bot" | ||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git config --global tag.gpgsign true | ||
- | ||
name: Build | ||
|
@@ -57,13 +62,12 @@ jobs: | |
git add -A dist | ||
- name: Publish | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
npm version ${{ github.event.inputs.version }} --no-git-tag-version | ||
VERSION=$(node -p "require('./package.json').version") | ||
git commit -m "release: $VERSION" -a | ||
git tag "$VERSION" -m "release: $VERSION" | ||
git push --follow-tags | ||
git push | ||
- | ||
name: GitHub Release | ||
uses: softprops/[email protected] | ||
gh release create $VERSION --generate-notes |