From d02b5f544bd3e13fee447387e65af27571f65053 Mon Sep 17 00:00:00 2001 From: Wan Qi Chen <495709+wa0x6e@users.noreply.github.com> Date: Mon, 2 Oct 2023 13:53:55 +0900 Subject: [PATCH] chore: auto version bump, tag and release --- .github/workflows/bump-tag-publish.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/bump-tag-publish.yml diff --git a/.github/workflows/bump-tag-publish.yml b/.github/workflows/bump-tag-publish.yml new file mode 100644 index 0000000..797a04f --- /dev/null +++ b/.github/workflows/bump-tag-publish.yml @@ -0,0 +1,25 @@ +name: Bump, tag and publish to npm + +on: + push: + branches: + - 'master' + +jobs: + bump-version: + uses: snapshot-labs/actions/.github/workflows/bump-version.yml@main + secrets: inherit + + create-github-release: + uses: snapshot-labs/actions/.github/workflows/create-github-release.yml@main + if: startsWith(needs.bump-version.outputs.tag, 'v') + needs: bump-version + secrets: inherit + with: + tag_name: ${{ needs.bump-version.outputs.tag }} + + publish-npm: + uses: snapshot-labs/actions/.github/workflows/publish-npm.yml@main + if: startsWith(needs.bump-version.outputs.tag, 'v') + needs: [bump-version, create-github-release] + secrets: inherit