From 0ca0efd7b8f36caa8130d2517eaaf02700177925 Mon Sep 17 00:00:00 2001 From: Jonas Strassel Date: Tue, 26 Aug 2025 13:21:24 +0200 Subject: [PATCH] fix: Delete .github/workflows/release.yml It's a bit of a weird action (today I'd rather use gh cli) and it seems to be only used in either archives, copies or readme. Ref.: https://github.com/search?q=org%3Abgd-labs+bgd-labs%2Fgithub-workflows%2F.github%2Fworkflows%2Frelease.yml&type=code --- .github/workflows/release.yml | 21 --------------------- README.md | 7 ++----- 2 files changed, 2 insertions(+), 26 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index ec97dcb..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,21 +0,0 @@ -# creates a new tag whenever a commit on `main` containing `chore(main)` appears -name: release - -on: - workflow_call: - -jobs: - release: - if: | - github.event_name == 'push' && - github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && - contains(github.event.head_commit.message, 'chore(main): release') - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - id: tag - name: tag - run: | - git tag v$(node -pe "require('./package.json').version") - git push origin v$(node -pe "require('./package.json').version") diff --git a/README.md b/README.md index 0c3a3a6..c7805f7 100644 --- a/README.md +++ b/README.md @@ -62,9 +62,9 @@ jobs: uses: bgd-labs/github-workflows/.github/workflows/draft-release.yml@main ``` -## Release / Release-node +## Release-node -`release` and `release-node` actions are intended to be used with `draft-release`. +The `release-node` action is intended to be used with `draft-release`. Instead of relying on manual dispatch this action is intended to be used on default branch merges only. The workflows will listen for the commit message created by `draft-release` and then perform their release tasks. @@ -76,7 +76,6 @@ The workflows will listen for the commit message created by `draft-release` and `release-node` workflow: - creates a node release -- the repository **MUST** use `yarn` as it's package manager - the repository **MUST** specify a `ci:publish` step which facilitates [building and publishing](https://github.com/bgd-labs/aave-address-book/blob/main/package.json#L17) ```yml @@ -86,8 +85,6 @@ on: - main jobs: - release: - uses: bgd-labs/github-workflows/.github/workflows/release.yml@main release-node: uses: bgd-labs/github-workflows/.github/workflows/release-node.yml@main secrets: