Skip to content

Commit 08e7fff

Browse files
committed
fix: add GitHub Action for beta release workflow
1 parent a6614d4 commit 08e7fff

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/beta-release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Beta Release
2+
3+
on:
4+
push:
5+
branches:
6+
- tailwindcss-v4
7+
8+
permissions:
9+
contents: write # to be able to publish a GitHub release
10+
issues: write # to comment on issues after release
11+
pull-requests: write # to comment on PRs after release
12+
id-token: write # for OIDC (npm provenance)
13+
14+
jobs:
15+
beta-release:
16+
name: Build & Publish @beta Release
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Setup Node
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 'lts/*'
28+
29+
- name: Use PNPM
30+
uses: pnpm/action-setup@v4
31+
with:
32+
version: 8
33+
34+
- name: Install dependencies
35+
run: pnpm install
36+
37+
- name: Run Semantic Release
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
41+
run: npx semantic-release --tag-format='beta-v{version}'

0 commit comments

Comments
 (0)