Skip to content

Commit dec6a83

Browse files
committed
1 parent aef59fb commit dec6a83

File tree

1 file changed

+44
-3
lines changed

1 file changed

+44
-3
lines changed

.github/workflows/ci.yml

+44-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [master]
88

99
jobs:
10-
build:
10+
test:
1111
runs-on: ubuntu-latest
1212

1313
strategy:
@@ -25,5 +25,46 @@ jobs:
2525
- run: yarn add react@${{ matrix.REACT_DIST }} react-dom@${{ matrix.REACT_DIST }}
2626
- run: yarn --cwd www
2727
- 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+
- uses: styfle/[email protected]
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 }}

0 commit comments

Comments
 (0)