File tree Expand file tree Collapse file tree 3 files changed +31
-7
lines changed Expand file tree Collapse file tree 3 files changed +31
-7
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
branches :
5
5
- master
6
+ - beta
6
7
- " [0-9]+.[0-9]+.x"
7
8
9
+ permissions :
10
+ contents : read # for checkout
11
+
8
12
jobs :
9
13
release :
10
- name : release
14
+ name : Release
11
15
runs-on : ubuntu-latest
16
+ permissions :
17
+ contents : write # to be able to publish a GitHub release
18
+ issues : write # to be able to comment on released issues
19
+ pull-requests : write # to be able to comment on released pull requests
20
+ id-token : write # to enable use of OIDC for npm provenance
12
21
steps :
13
- - uses : actions/checkout@v2
14
- - uses : actions/setup-node@v1
22
+ - name : Checkout repository
23
+ uses : actions/checkout@v4
24
+ with :
25
+ fetch-depth : 0 # fetch all history
26
+
27
+ - name : Setup Node.js
28
+ uses : actions/setup-node@v4
15
29
with :
16
- node-version : " 20.x"
17
- - run : npm ci
18
- - run : npm run build
19
- - run : npx semantic-release
30
+ node-version : 22
31
+
32
+ - name : Install dependencies
33
+ run : npm ci
34
+
35
+ - name : Run build
36
+ run : npm run build
37
+
38
+ - name : Release
20
39
env :
21
40
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
22
41
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
42
+ run : npx semantic-release@^24
Original file line number Diff line number Diff line change 3
3
push :
4
4
branches :
5
5
- master
6
+ - beta
6
7
- " [0-9]+.[0-9]+.x"
7
8
pull_request :
8
9
types : [opened, synchronize, reopened]
Original file line number Diff line number Diff line change 27
27
"type" : " git" ,
28
28
"url" : " https://github.com/react-dropzone/file-selector.git"
29
29
},
30
+ "publishConfig" : {
31
+ "access" : " public"
32
+ },
30
33
"scripts" : {
31
34
"prebuild" : " npm run clean" ,
32
35
"build" : " npm-run-all -s compile build:umd" ,
You can’t perform that action at this time.
0 commit comments