File tree 1 file changed +44
-3
lines changed
1 file changed +44
-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 :
47
+ ${{ github.repository == 'reactjs/react-transition-group' &&
48
+ contains('refs/heads/master,refs/heads/alpha',
49
+ github.ref) && github.event_name == 'push' }}
50
+ steps :
51
+
52
+ - uses : actions/checkout@v2
53
+ - name : Use Node.js 14
54
+ uses : actions/setup-node@v2
55
+ with :
56
+ node-version : 14
57
+ cache : ' npm'
58
+ - run : yarn
59
+ - name : Release
60
+ uses : cycjimmy/semantic-release-action@v2
61
+ with :
62
+ semantic_version : 17
63
+ branches : |
64
+ [
65
+ 'master',
66
+ {name: 'alpha', prerelease: true}
67
+ ]
68
+ env :
69
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
70
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments