From c56b985038ce490c6a1a8fddb1dc0ec92e767dd8 Mon Sep 17 00:00:00 2001 From: Hartley McGuire Date: Wed, 28 Jan 2026 09:32:26 -0500 Subject: [PATCH] Add trusted publishing --- .github/workflows/release.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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 00000000..567480bb --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +name: Release + +on: + push: + tags: + - v[0-9]+.[0-9]+.[0-9]+ + +jobs: + release: + if: github.repository == 'Shopify/pitchfork' + + runs-on: ubuntu-latest + + permissions: + contents: write + id-token: write + + environment: release + + steps: + - uses: actions/checkout@v6 + with: + persist-credentials: false + + - uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + + - uses: rubygems/release-gem@v1