-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from suu3/develop
[chore] test
- Loading branch information
Showing
2 changed files
with
21 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,12 +28,3 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
PUBLISH_BRANCH: deploy | ||
PUBLISH_DIR: ./public | ||
- name: Create tag | ||
run: | | ||
VERSION=$(jq -r '.version' < package.json) | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "suu3" | ||
git tag -a "v$VERSION" -m "Release v$VERSION" | ||
git push origin main --tags | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,41 @@ | ||
name: Create release | ||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
release: | ||
name: Release pushed tag | ||
name: Create Release Pull Request or Publish to npm | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Create Release Pull Request or Publish | ||
uses: changesets/action@v1 | ||
with: | ||
# Expects a script called release that builds the packages and calls changeset publish | ||
publish: pnpm changeset tag | ||
version: pnpm changeset version | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
release-tag: | ||
name: Release pushed tag | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Create release | ||
- name: Create GitHub Release | ||
env: | ||
VERSION: ${{ github.ref_name }} | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
gh release create "$VERSION" \ | ||
--repo="$GITHUB_REPOSITORY" \ | ||
--title="${tag#v}" \ | ||
--title="${VERSION#v}" \ | ||
--generate-notes |