From a52cc7b6b1e3620591a7580defde3ce6bd8e821e Mon Sep 17 00:00:00 2001 From: Wan Qi Chen <495709+wa0x6e@users.noreply.github.com> Date: Mon, 2 Oct 2023 13:31:50 +0900 Subject: [PATCH 1/2] 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 From e0113980fac8c11b3c17b1615dce5c190d4a4660 Mon Sep 17 00:00:00 2001 From: Wan Qi Chen <495709+wa0x6e@users.noreply.github.com> Date: Tue, 3 Oct 2023 11:23:21 +0900 Subject: [PATCH 2/2] chore: use aggregate task from action repo --- .github/workflows/bump-tag-publish.yml | 25 ------------------------- .github/workflows/release.yml | 11 +++++++++++ 2 files changed, 11 insertions(+), 25 deletions(-) delete mode 100644 .github/workflows/bump-tag-publish.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/bump-tag-publish.yml b/.github/workflows/bump-tag-publish.yml deleted file mode 100644 index 797a04f..0000000 --- a/.github/workflows/bump-tag-publish.yml +++ /dev/null @@ -1,25 +0,0 @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..ccae86b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,11 @@ +name: Release + +on: + push: + branches: + - 'master' + +jobs: + release: + uses: snapshot-labs/actions/.github/workflows/release.yml@main + secrets: inherit