Skip to content

Commit

Permalink
ci: release @next workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
unnoq committed Dec 1, 2024
1 parent 9134ceb commit e9dc36e
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/release-next.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e9dc36e

Please sign in to comment.