diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0165ffe..11a5850 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,42 +13,13 @@ on: - 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 - - 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 }} + secrets: + RELEASE_GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}