diff --git a/.github/workflows/release-next.yaml b/.github/workflows/release-next.yaml new file mode 100644 index 00000000..41cbd323 --- /dev/null +++ b/.github/workflows/release-next.yaml @@ -0,0 +1,35 @@ +name: Release @next + +on: + push: + branches: [main] + +jobs: + release-next: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + + - run: pnpm i + + - run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + + - run: echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + id: commit + + - run: pnpm run packages:bump 0.0.0-next.${{ steps.commit.outputs.short_sha }} --yes --no-push + + - run: pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}" + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + + - run: pnpm run packages:publish --tag=next + env: + NPM_CONFIG_PROVENANCE: true diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1983de3f..f1619ab9 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -51,7 +51,7 @@ jobs: git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" - - run: pnpm run packages:bump ${{ github.event.inputs.version }} --yes --preid=${{ steps.version.outputs.preid }} + - run: pnpm run packages:bump ${{ github.event.inputs.version }} --yes - run: pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}" env: