Skip to content

Commit 00a79d4

Browse files
committed
feat: publish v4 prerelease
1 parent c2a8984 commit 00a79d4

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/prerelease-v4.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: prerelease
2+
3+
on:
4+
push:
5+
branches:
6+
- v4
7+
8+
jobs:
9+
main:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
id-token: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: pnpm/action-setup@v4
17+
- uses: actions/setup-node@v4
18+
with:
19+
registry-url: 'https://registry.npmjs.org'
20+
node-version: 20.x
21+
cache: 'pnpm'
22+
- run: pnpm install
23+
- run: |
24+
git config --global user.name "${{ github.actor }}"
25+
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
26+
- run: |
27+
sed -i 's/"use-intl": "workspace:\^"/"use-intl": "workspace:"/' ./packages/next-intl/package.json && git commit -am "use fixed version"
28+
- run: pnpm lerna publish 4.0.0-beta-${GITHUB_SHA::7} --no-git-reset --dist-tag v4 --no-push --yes
29+
if: "${{startsWith(github.event.head_commit.message, 'fix: ') || startsWith(github.event.head_commit.message, 'feat: ')}}"
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
33+
NPM_CONFIG_PROVENANCE: true

0 commit comments

Comments
 (0)