@@ -2,32 +2,36 @@ name: Test & Build
22
33on :
44 push :
5- branches : [ master, develop, feat/*, fix/* ]
5+ branches : [master, develop, feat/*, fix/*]
66jobs :
77 test :
88 runs-on : ubuntu-latest
99 if : " !contains(github.event.head_commit.message, '[skip ci]')"
1010 steps :
1111 - uses : actions/checkout@v3
12- - uses : actions/setup-node@v3
12+ - uses : pnpm/action-setup@v2
1313 with :
1414 node-version : " 18.x"
15- - run : yarn install --frozen-lockfile
16- - run : yarn test
15+ run_install : |
16+ - recursive: true
17+ args: [--frozen-lockfile, --strict-peer-dependencies]
18+ - run : pnpm test
1719 if : " !contains(github.event.head_commit.message, '[skip test]')"
1820 build :
1921 runs-on : ubuntu-latest
2022 if : " !contains(github.event.head_commit.message, '[skip ci]')"
2123 needs : test
2224 steps :
2325 - uses : actions/checkout@v3
24- - uses : actions/setup-node@v3
26+ - uses : pnpm/action-setup@v2
2527 with :
2628 node-version : " 18.x"
27- - run : yarn install --frozen-lockfile
28- - run : yarn build
29- - run : cd ./dist && yarn pack --filename=../package.tgz
30- - run : yarn semantic-release
29+ run_install : |
30+ - recursive: true
31+ args: [--frozen-lockfile, --strict-peer-dependencies]
32+ - run : pnpm build
33+ - run : cd ./dist && pnpm pack --filename=../package.tgz
34+ - run : pnpm semantic-release
3135 if : " !contains(github.event.head_commit.message, '[skip publish]')"
3236 env :
3337 NPM_TOKEN : " ${{ secrets.NPM_TOKEN }}"
0 commit comments