File tree Expand file tree Collapse file tree 5 files changed +60
-13
lines changed Expand file tree Collapse file tree 5 files changed +60
-13
lines changed Original file line number Diff line number Diff line change 1616 node-version : 20
1717 check-latest : true
1818 cache : ' pnpm'
19- - run : pnpm install
19+ - run : make install-dependencies
2020 - name : Check title
2121 run : |
2222 title=$(cat <<- "EOF"
Original file line number Diff line number Diff line change 4646 id : pages
4747 uses : actions/configure-pages@v5
4848 - name : Install dependencies
49- run : pnpm install
49+ run : make install-dependencies
5050 - name : Build doc
51- run : pnpm run doc
51+ run : make doc
5252 - name : Upload artifact
5353 uses : actions/upload-pages-artifact@v3
5454 with :
Original file line number Diff line number Diff line change @@ -30,18 +30,18 @@ jobs:
3030 registry-url : ' https://registry.npmjs.org/'
3131 node-version : 20
3232 check-latest : true
33- - run : pnpm install
34- - run : pnpm run build
33+ - run : make install-dependencies
34+ - run : make build
3535
3636 - name : Version package with lerna
37- run : pnpm lerna version -y --no-private --force-git-tag --create-release github
37+ run : make publish
3838 env :
3939 HUSKY : 0
4040 GH_TOKEN : ${{ secrets.GH_TOKEN }}
4141
4242 # https://docs.github.com/en/actions/use-cases-and-examples/publishing-packages/publishing-nodejs-packages#publishing-packages-to-the-npm-registry
4343 - name : Publish to npm
44- run : pnpm -r publish --access public --tag latest
44+ run : make publish
4545 env :
4646 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
4747 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1919 node-version : 20
2020 check-latest : true
2121 cache : ' pnpm'
22- - run : pnpm install
23- - run : pnpm typecheck
22+ - run : make install-dependencies
23+ - run : make typing
2424 lint :
2525 runs-on : ubuntu-24.04
2626 steps :
3232 node-version : 20
3333 check-latest : true
3434 cache : ' pnpm'
35- - run : pnpm install
36- - run : pnpm run build
35+ - run : make install-dependencies
36+ - run : make build
3737 - run : pnpm run lint
3838 test :
3939 runs-on : ubuntu-24.04
5454 node-version : ${{ matrix.node }}
5555 check-latest : true
5656 cache : ' pnpm'
57- - run : pnpm install
58- - run : pnpm run build
57+ - run : make install-dependencies
58+ - run : make build
5959 - run : pnpm run test:coverage --environment ${{ matrix.test-environment }}
6060
Original file line number Diff line number Diff line change 1+ WORKDIR = $(shell pwd)
2+
3+ LIBRARIES = $(shell find packages packages_generated -mindepth 1 -maxdepth 1 -type d)
4+
5+ build :
6+ pnpm turbo build
7+
8+ install-dependencies :
9+ pnpm install
10+
11+ format :
12+ pnpm run format
13+
14+ format-check :
15+ pnpm run format:check
16+
17+ typing :
18+ pnpm turbo typecheck
19+
20+ lint :
21+ pnpm turbo lint
22+
23+ test :
24+ pnpm turbo test
25+
26+ test-coverage :
27+ pnpm run test:coverage
28+
29+ doc :
30+ pnpm run doc
31+
32+ prebuild :
33+ pnpm run prebuild
34+
35+ generate-alias :
36+ pnpm run generateAlias
37+
38+ generate-packages :
39+ pnpm run generatePackages
40+
41+ generate-global-sdk-package :
42+ pnpm run generateGlobalSdkPackage
43+
44+ publish : install-dependencies
45+ pnpm run build
46+ pnpm lerna changed
47+ pnpm exec lerna publish -y --registry $(NPM_PUBLISH_REGISTRY ) --ignore-scripts
You can’t perform that action at this time.
0 commit comments