File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @frontendfixer/eslint-config-react ' : patch
3
+ ---
4
+
5
+ create changeset vesion job before changeset release job
Original file line number Diff line number Diff line change 9
9
concurrency : ${{ github.workflow }}-${{ github.ref }}
10
10
11
11
jobs :
12
+ version :
13
+ name : Release
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Checkout Repo
17
+ uses : actions/checkout@v3
18
+ with :
19
+ fetch-depth : 0
20
+
21
+ - name : Setup Node.js
22
+ uses : actions/setup-node@v3
23
+ with :
24
+ cache : yarn
25
+ node-version : lts/*
26
+
27
+ - name : Install Dependencies
28
+ run : yarn
29
+
30
+ - name : Create Release Pull Request or Publish to npm
31
+ id : changesets
32
+ uses : changesets/action@v1
33
+ with :
34
+ version : yarn version
35
+ env :
36
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37
+
12
38
release :
13
39
name : Release
14
40
runs-on : ubuntu-latest
41
+ if : ${{ github.ref == 'refs/heads/main' }}
42
+ needs : [version]
15
43
steps :
16
44
- name : Checkout Repo
17
45
uses : actions/checkout@v3
31
59
id : changesets
32
60
uses : changesets/action@v1
33
61
with :
62
+ version : yarn version
34
63
publish : yarn release
35
64
env :
36
65
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments