-
-
Notifications
You must be signed in to change notification settings - Fork 139
37 lines (27 loc) · 912 Bytes
/
release-next.yaml
File metadata and controls
37 lines (27 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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 env use --global 22
- 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