Skip to content

Commit

Permalink
ci: create github release
Browse files Browse the repository at this point in the history
  • Loading branch information
goosewobbler committed Nov 21, 2024
1 parent d7434f9 commit e95ecaf
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,24 @@ jobs:
- name: Create Release and Tags
shell: bash
run: pnpm turbo-version -b ${{inputs.releaseVersion}}
- name: Publish Release
- name: Publish to NPM
shell: bash
run: pnpm publish -r --tag ${{inputs.npmTag}}
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Push Tags and Commits
shell: bash
run: git push --tags && git push
run: |
git push --tags && git push
RELEASE_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
body_path: ${{ github.workspace }}/packages/zutron/CHANGELOG.md
repository: goosewobbler/zutron
tag_name: echo $RELEASE_TAG
# note you'll typically need to create a personal access token
# with permissions to create releases in the other repo
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e95ecaf

Please sign in to comment.