From 021a5c2a3e00e88be14fe154e9124cb175c7e8b4 Mon Sep 17 00:00:00 2001 From: liting Date: Tue, 10 Sep 2024 19:45:07 +0800 Subject: [PATCH] feat(workflow): add release --- .github/workflows/release.yml | 26 ++++++++++++++++++++++++++ .vscode/settings.json | 1 + 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7090ef4 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: release + +permissions: + contents: write + +on: + push: + tags: + - 'v*' + workflow_dispatch: + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: actions/setup-node@v4 + with: + node-version: lts + + - run: npx changelogithub + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.vscode/settings.json b/.vscode/settings.json index 1e0795a..2e87b9c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -31,6 +31,7 @@ "cSpell.words": [ "antfu", "bumpp", + "changelogithub", "commitlint", "oxlint" ]