File tree Expand file tree Collapse file tree 4 files changed +96
-1
lines changed
monorepo-tutorial/.github-workflows/workflows Expand file tree Collapse file tree 4 files changed +96
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Lint
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ branches :
9
+ - main
10
+
11
+ concurrency : ${{ github.workflow }}-${{ github.ref }}
12
+
13
+ jobs :
14
+ lint :
15
+ name : Lint
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - name : Checkout Repository
19
+ uses : actions/checkout@v2
20
+
21
+ - name : Setup Node.js 16.x
22
+ uses : actions/setup-node@v2
23
+ with :
24
+ node-version : 16.x
25
+
26
+ - name : Install Dependencies
27
+ run : yarn install
28
+
29
+ - name : Lint
30
+ run : yarn lint
Original file line number Diff line number Diff line change
1
+ name : Prettier
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ branches :
9
+ - main
10
+
11
+ concurrency : ${{ github.workflow }}-${{ github.ref }}
12
+
13
+ jobs :
14
+ prettier :
15
+ name : Prettier
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - name : Checkout Repository
19
+ uses : actions/checkout@v2
20
+
21
+ - name : Setup Node.js 16.x
22
+ uses : actions/setup-node@v2
23
+ with :
24
+ node-version : 16.x
25
+
26
+ - name : Install Dependencies
27
+ run : yarn install
28
+
29
+ - name : Prettier
30
+ run : yarn format
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ concurrency : ${{ github.workflow }}-${{ github.ref }}
9
+
10
+ jobs :
11
+ release :
12
+ name : Release
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Checkout Repository
16
+ uses : actions/checkout@v2
17
+ with :
18
+ fetch-depth : 0
19
+
20
+ - name : Setup Node.js 16.x
21
+ uses : actions/setup-node@v2
22
+ with :
23
+ node-version : 16.x
24
+
25
+ - name : Install Dependencies
26
+ run : yarn install
27
+
28
+ - name : Create Release Pull Request or Publish to npm
29
+ id : changesets
30
+ uses : changesets/action@v1
31
+ with :
32
+ publish : yarn release
33
+ env :
34
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments