File tree Expand file tree Collapse file tree 7 files changed +5674
-144
lines changed Expand file tree Collapse file tree 7 files changed +5674
-144
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v*"
7
+
8
+ jobs :
9
+ publish :
10
+ name : Build and Publish
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+ with :
15
+ fetch-depth : 0
16
+
17
+ - uses : actions/setup-node@v2
18
+ with :
19
+ node-version : " 16.x"
20
+
21
+ - name : Install and Build Packages
22
+ run : |
23
+ yarn install
24
+ yarn build
25
+
26
+ - name : Authenticate with Registry
27
+ run : |
28
+ echo "registry=http://registry.npmjs.org/" >> .npmrc
29
+ echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
30
+ env :
31
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
32
+
33
+ - name : Publish packages
34
+ run : yarn lerna publish from-package --yes
35
+ env :
36
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
38
+
39
+ - name : Github Release
40
+ run : gh release create ${{ github.ref }} --generate-notes
41
+ env :
42
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43
+
Original file line number Diff line number Diff line change 15
15
persist-credentials : false
16
16
- uses : actions/setup-node@v2
17
17
with :
18
- node-version : " 12 .x"
18
+ node-version : " 14 .x"
19
19
- name : Install and Build 🔧
20
20
run : | # Install npm packages and build the Storybook files
21
21
yarn install
Original file line number Diff line number Diff line change 7
7
coverage
8
8
package-lock.json
9
9
.DS_Store
10
+ .turbo
10
11
11
12
# production
12
- /build
13
+ ** /build
13
14
/public
14
15
/dist
15
16
/packages /** /lib /
Original file line number Diff line number Diff line change 10
10
"bootstrap" : " lerna bootstrap" ,
11
11
"prebuild" : " npm run clean" ,
12
12
"clean" : " lerna exec -- rimraf lib" ,
13
- "build" : " lerna run build" ,
14
- "dev" : " lerna run dev" ,
13
+ "build" : " turbo run build" ,
14
+ "dev" : " turbo run dev" ,
15
15
"commit" : " git-cz" ,
16
16
"storybook" : " start-storybook -p 6006" ,
17
17
"build-storybook" : " build-storybook -o public -s ./.storybook/images" ,
18
- "test" : " lerna run test" ,
19
- "lint" : " lerna run lint" ,
18
+ "test" : " turbo run test" ,
19
+ "lint" : " turbo run lint" ,
20
20
"lint:fix" : " lerna run lint:fix"
21
21
},
22
22
"devDependencies" : {
59
59
"react" : " ^16.13.1" ,
60
60
"react-dom" : " ^16.13.1" ,
61
61
"ts-jest" : " ^26.3.0" ,
62
+ "turbo" : " ^1.3.1" ,
62
63
"typescript" : " ^4.0.2"
63
64
},
64
65
"command" : {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " https://turborepo.org/schema.json" ,
3
+ "baseBranch" : " origin/main" ,
4
+ "pipeline" : {
5
+ "build" : {
6
+ "dependsOn" : [" ^build" ],
7
+ "outputs" : [" lib/**" , " cjs/**" , " esm/**" ]
8
+ },
9
+ "test" : {
10
+ "outputs" : []
11
+ },
12
+ "dev" : {
13
+ "cache" : false
14
+ }
15
+ }
16
+ }
You can’t perform that action at this time.
0 commit comments