File tree Expand file tree Collapse file tree 1 file changed +26
-7
lines changed Expand file tree Collapse file tree 1 file changed +26
-7
lines changed Original file line number Diff line number Diff line change @@ -2,19 +2,38 @@ name: Release
2
2
on :
3
3
push :
4
4
branches :
5
- - master
5
+ - main
6
+ - beta
7
+ - " [0-9]+.[0-9]+.x"
8
+
9
+ permissions :
10
+ contents : read
6
11
7
12
jobs :
8
13
release :
9
- name : release
14
+ name : Release
10
15
runs-on : ubuntu-latest
16
+ permissions :
17
+ contents : write
18
+ issues : write
19
+ pull-requests : write
20
+ id-token : write
11
21
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
14
29
with :
15
- node-version : " 14.x"
16
- - run : npm ci
17
-
30
+ node-version : 14
31
+
32
+ - name : Install dependencies
33
+ run : npm ci
34
+
35
+ - name : Release
36
+
18
37
env :
19
38
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
20
39
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments