Skip to content

Commit

Permalink
ci: add sync-tag-to-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
magicdawn committed Jul 5, 2024
1 parent 0c5897d commit a51ff95
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/sync-tag-to-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: sync-tag-to-release

on:
push:
tags:
- 'v*'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
sync-tag-to-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

# 1. publish local
# 2. push tag to github
# 3. sync tag -> release, add changelog
- run: pnpx changeloggithub@0
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit a51ff95

Please sign in to comment.