Skip to content

Commit

Permalink
Add job for creating a github release together with release commit
Browse files Browse the repository at this point in the history
  • Loading branch information
EvenAR committed Jun 11, 2024
1 parent 38f7ae0 commit 81f8c29
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
release:
name: Release new version
runs-on: ubuntu-latest
outputs:
new_tag: ${{ steps.bump_verson.outputs.tag }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -32,4 +34,12 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
- run: npm version ${{ inputs.version }}
- id: bump_verson
run: npm version ${{ inputs.version }} >> "$GITHUB_OUTPUT"
- run: git push --follow-tags
github_release:
name: Create a release
runs-on: ubuntu-latest
needs: release
steps:
- run: gh release create ${{ needs.release.outputs.new_tag }} --draft --verify-tag

0 comments on commit 81f8c29

Please sign in to comment.