Skip to content

Commit 834e30c

Browse files
committed
ci: run releases on main, beta and maintenance branches
1 parent 887b2a5 commit 834e30c

File tree

1 file changed

+26
-7
lines changed

1 file changed

+26
-7
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,38 @@ name: Release
22
on:
33
push:
44
branches:
5-
- master
5+
- main
6+
- beta
7+
- "[0-9]+.[0-9]+.x"
8+
9+
permissions:
10+
contents: read
611

712
jobs:
813
release:
9-
name: release
14+
name: Release
1015
runs-on: ubuntu-latest
16+
permissions:
17+
contents: write
18+
issues: write
19+
pull-requests: write
20+
id-token: write
1121
steps:
12-
- uses: actions/checkout@v4
13-
- uses: actions/setup-node@v4
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v4
1429
with:
15-
node-version: "14.x"
16-
- run: npm ci
17-
- run: npx [email protected]
30+
node-version: 14
31+
32+
- name: Install dependencies
33+
run: npm ci
34+
35+
- name: Release
36+
1837
env:
1938
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2039
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)