From 419b753157dd188f5bedbe3025b115f305a74b4c Mon Sep 17 00:00:00 2001 From: Antony Rizzitelli Date: Tue, 15 Sep 2026 16:52:19 +0000 Subject: [PATCH] ci: use shared npm release workflow --- .github/workflows/release.yml | 49 ++++++++--------------------------- 1 file changed, 11 insertions(+), 38 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 489e66d..fd0088b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,46 +8,19 @@ on: required: true default: latest type: choice - options: [latest, next] + options: + - latest + - next permissions: - contents: read - -concurrency: - group: release - cancel-in-progress: false + contents: write + id-token: write jobs: release: - runs-on: ubuntu-latest - environment: npm-publish - permissions: - contents: write - id-token: write - steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 - with: - fetch-depth: 0 - token: ${{ secrets.RELEASE_GITHUB_TOKEN }} - - uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 - - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 - with: - node-version: 24 - registry-url: https://registry.npmjs.org - cache: pnpm - - run: pnpm install --frozen-lockfile - - run: pnpm add --global @antelopejs/core - - name: Configure release identity - run: | - git config user.name "github-actions[bot]" - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - - name: Publish stable release - if: inputs.channel == 'latest' - run: pnpm release --ci - env: - GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }} - - name: Publish next release - if: inputs.channel == 'next' - run: pnpm release --ci --preRelease=next - env: - GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }} + uses: AntelopeJS/.github/.github/workflows/release-npm-public.yml@e541e89701f1aac3cdf6424b8ab832aa7443da86 + with: + channel: ${{ inputs.channel }} + install-core: true + secrets: + RELEASE_GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}