Skip to content

Commit

Permalink
Update release action to use auto gen body
Browse files Browse the repository at this point in the history
  • Loading branch information
mackenly committed Jun 10, 2024
1 parent 78f0f06 commit 7644f89
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
publish:
needs: build-and-test
runs-on: ubuntu-latest
if : github.repository_owner == 'mackenly' && github.ref == 'refs/heads/main'
if: github.repository_owner == 'mackenly' && github.ref == 'refs/heads/main'
permissions:
contents: write
packages: write
Expand Down Expand Up @@ -70,20 +70,20 @@ jobs:
scope: '@mackenly'
- name: Configure npm registry
run: |
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to npm
run: npm publish --access public --tag latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create GitHub Release
uses: actions/create-release@v1
uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.versioning.outputs.newTag }}
release_name: Release ${{ steps.versioning.outputs.newTag }}
body: ${{ steps.versioning.outputs.changelog }}
tag: ${{ steps.versioning.outputs.newTag }}
name: ${{ steps.versioning.outputs.newTag }}
generateReleaseNotes: true
draft: false
prerelease: false

0 comments on commit 7644f89

Please sign in to comment.