Skip to content

Commit

Permalink
put Github release step in publish workflow (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubox76 authored Apr 30, 2024
1 parent 5fd28fc commit d785a79
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 41 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/gh-release.yml

This file was deleted.

13 changes: 12 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,22 @@ jobs:
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Publish
- name: NPM publish
run: yarn changeset publish

- name: Git tags
# list tags then try to push them
run: |
git for-each-ref refs/tags
git push --follow-tags
- name: Create Github release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
NEWEST_TAG=$(git describe --tags --abbrev=0)
gh release create "$NEWEST_TAG" \
--repo="$GITHUB_REPOSITORY" \
--title="$NEWEST_TAG" \
--generate-notes \
--verify-tag

0 comments on commit d785a79

Please sign in to comment.