From 77f8487fd08147572984c2029a9de3054350c5a7 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 13 May 2026 20:59:36 +0000 Subject: [PATCH 1/2] ci: restore release environment Co-authored-by: Kent C. Dodds --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 12ab740..8113384 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -83,6 +83,8 @@ jobs: name: 🚀 Release needs: [build-release-artifact] runs-on: ubuntu-latest + environment: + name: production permissions: contents: write # to be able to publish a GitHub release id-token: write # to enable use of OIDC for npm provenance From 67f2607bb685669a2e2c155a9867ddab9cd192ec Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 13 May 2026 21:01:57 +0000 Subject: [PATCH 2/2] ci: gate release jobs to release branches Co-authored-by: Kent C. Dodds --- .github/workflows/release.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8113384..ac8676f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -54,7 +54,13 @@ jobs: runs-on: ubuntu-latest permissions: contents: read - if: ${{ github.repository == 'epicweb-dev/epicli' && github.event_name == 'push' }} + if: >- + ${{ + github.repository == 'epicweb-dev/epicli' && + github.event_name == 'push' && + (contains(fromJSON('["main","next","next-major","beta","alpha"]'), github.ref_name) || + endsWith(github.ref_name, '.x')) + }} steps: - name: ⬇️ Checkout repo uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5 @@ -90,7 +96,13 @@ jobs: id-token: write # to enable use of OIDC for npm provenance issues: write # to be able to comment on released issues pull-requests: write # to be able to comment on released pull requests - if: ${{ github.repository == 'epicweb-dev/epicli' && github.event_name == 'push' }} + if: >- + ${{ + github.repository == 'epicweb-dev/epicli' && + github.event_name == 'push' && + (contains(fromJSON('["main","next","next-major","beta","alpha"]'), github.ref_name) || + endsWith(github.ref_name, '.x')) + }} steps: - name: ⬇️ Checkout repo uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5