File tree 2 files changed +11
-10
lines changed
2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 25
25
runs-on : ubuntu-latest
26
26
timeout-minutes : 20
27
27
28
+ permissions :
29
+ packages : write
30
+ contents : write
31
+
28
32
steps :
29
33
- run : echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
30
34
41
45
uses : actions/setup-node@v3
42
46
with :
43
47
node-version : 19
44
- cache : ' yarn'
45
48
46
49
- name : Yarn
47
50
run : yarn install --frozen-lockfile
50
53
run : |
51
54
yarn test
52
55
53
- - name : Release Prep
54
- run : |
55
- npm i -g semantic-release @semantic-release/git @semantic-release/github conventional-changelog-conventionalcommits
56
-
57
56
- name : Release
57
+ if : github.ref == 'refs/heads/develop'
58
58
run : |
59
+ npm i -g semantic-release @semantic-release/git @semantic-release/github conventional-changelog-conventionalcommits
59
60
npx semantic-release --no-ci --debug
Original file line number Diff line number Diff line change 19
19
runs-on : ubuntu-latest
20
20
timeout-minutes : 20
21
21
22
+ permissions :
23
+ packages : write
24
+ contents : write
25
+
22
26
steps :
23
27
- run : echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
24
28
35
39
uses : actions/setup-node@v3
36
40
with :
37
41
node-version : 19
38
- cache : ' yarn'
39
42
40
43
- name : Yarn
41
44
run : yarn install --frozen-lockfile
44
47
run : |
45
48
yarn test
46
49
47
- - name : Release Prep
48
- run : |
49
- npm i -g semantic-release @semantic-release/git @semantic-release/github conventional-changelog-conventionalcommits
50
-
51
50
- name : Release
52
51
run : |
52
+ npm i -g semantic-release @semantic-release/git @semantic-release/github conventional-changelog-conventionalcommits
53
53
npx semantic-release --no-ci --debug
You can’t perform that action at this time.
0 commit comments