Skip to content

Commit

Permalink
Use gh CLI for release
Browse files Browse the repository at this point in the history
  • Loading branch information
omBratteng committed Mar 27, 2023
1 parent 60e6ca7 commit 56cdd06
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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

0 comments on commit 56cdd06

Please sign in to comment.