Skip to content

Commit

Permalink
ci: moves release to separate job.
Browse files Browse the repository at this point in the history
  • Loading branch information
outofcoffee committed Mar 2, 2025
1 parent 5709c48 commit d9abb95
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,28 @@ jobs:
export IMPOSTER_DOCKER_CONTAINERUSER="$(id -u)"
npm test
- name: Release
if: startsWith(github.ref, 'refs/tags/')
release:
needs: build
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get Changelog Entries
uses: release-tools/since@707ab359a9d7f14e5d19126ec19e3fe218b8cbcc
with:
output-file: version_changelog.txt

- name: Publish to NPM
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}

- name: Create Release
uses: softprops/action-gh-release@v1
with:
body_path: version_changelog.txt
draft: false
prerelease: false

0 comments on commit d9abb95

Please sign in to comment.