Skip to content

Commit

Permalink
Merge pull request #11 from suu3/develop
Browse files Browse the repository at this point in the history
[chore] test
  • Loading branch information
suu3 authored Dec 7, 2024
2 parents b15b339 + 39f1560 commit aa3911c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 16 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
28 changes: 21 additions & 7 deletions .github/workflows/release.yml
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

0 comments on commit aa3911c

Please sign in to comment.