From da65993b09f81817dcc10b1daaeaf572bd59efed Mon Sep 17 00:00:00 2001 From: Roman Lamsal Date: Wed, 30 Sep 2026 22:53:57 +0200 Subject: [PATCH] ci(release): drop legacy release.yml, trigger components release on workflow changes npm trusted publishing for @swr-data-lab/components now points at release-components.yml, so the old release.yml (kept only for the OIDC binding, see its TODO) would fail on every components push. release-components.yml now also runs when the workflow file itself changes, so edits to it are exercised on merge. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release-components.yml | 1 + .github/workflows/release.yml | 44 ------------------------ 2 files changed, 1 insertion(+), 44 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release-components.yml b/.github/workflows/release-components.yml index 9dddd996..bc43319f 100644 --- a/.github/workflows/release-components.yml +++ b/.github/workflows/release-components.yml @@ -4,6 +4,7 @@ on: push: paths: - 'components/**' + - '.github/workflows/release-components.yml' branches: - main diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index aa1a28ec..00000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,44 +0,0 @@ -# TODO: delete after npmjs.org is configured to accept release-components -name: release components - -on: - push: - paths: - - 'components/**' - branches: - - main - -permissions: - id-token: write - contents: read - -jobs: - release: - name: Release - runs-on: ubuntu-latest - - defaults: - run: - working-directory: ./components - - permissions: - contents: write - issues: write - id-token: write - pull-requests: write - - steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - fetch-depth: 0 - - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 - with: - node-version: 24.18 - registry-url: 'https://registry.npmjs.org/' - package-manager-cache: false - - run: npm ci - - run: npm audit signatures - - name: Release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: npm run semantic-release