From 48ec8b33aabf57db02978de46f98127b6f02bbcb Mon Sep 17 00:00:00 2001 From: zernonia Date: Wed, 20 Sep 2023 17:04:35 +0800 Subject: [PATCH] chore: add release workflow --- .github/workflows/release.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..7b1d6468 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,27 @@ +# .github/workflows/release.yml + +name: Release + +permissions: + contents: write + +on: + push: + tags: + - 'v*' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - uses: actions/setup-node@v3 + with: + node-version: 18.x + + - run: npx changelogithub + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}