File tree Expand file tree Collapse file tree 1 file changed +43
-3
lines changed Expand file tree Collapse file tree 1 file changed +43
-3
lines changed Original file line number Diff line number Diff line change 7
7
branches : [master]
8
8
9
9
jobs :
10
- build :
10
+ test :
11
11
runs-on : ubuntu-latest
12
12
13
13
strategy :
25
25
- run : yarn add react@${{ matrix.REACT_DIST }} react-dom@${{ matrix.REACT_DIST }}
26
26
- run : yarn --cwd www
27
27
- run : yarn test
28
- - run : npm run build
29
- - run : npm run semantic-release
28
+ - name : Dry release
29
+ uses : cycjimmy/semantic-release-action@v2
30
+ with :
31
+ dry_run : true
32
+ semantic_version : 17
33
+ branches : |
34
+ [
35
+ 'master',
36
+ {name: 'alpha', prerelease: true}
37
+ ]
38
+ env :
39
+ # These are not available on forks so we might as well remove them?
40
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
42
+
43
+ release :
44
+ needs : test
45
+ runs-on : ubuntu-latest
46
+ if : ${{ github.repository == 'reactjs/react-transition-group' &&
47
+ contains('refs/heads/master,refs/heads/alpha',
48
+ github.ref) && github.event_name == 'push' }}
49
+ steps :
50
+
51
+ - uses : actions/checkout@v2
52
+ - name : Use Node.js 14
53
+ uses : actions/setup-node@v2
54
+ with :
55
+ node-version : 14
56
+ cache : ' npm'
57
+ - run : yarn
58
+ - name : Release
59
+ uses : cycjimmy/semantic-release-action@v2
60
+ with :
61
+ semantic_version : 17
62
+ branches : |
63
+ [
64
+ 'master',
65
+ {name: 'alpha', prerelease: true}
66
+ ]
67
+ env :
68
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
69
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments