Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put Github release step in publish workflow #117

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading