File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Releases
22
33on :
44 push :
5- branches : [master, develop]
5+ branches : [ master, develop ]
66jobs :
77 build :
88 runs-on : ubuntu-latest
@@ -11,23 +11,24 @@ jobs:
1111 - uses : actions/checkout@v2
1212 - uses : actions/setup-node@v1
1313 with :
14- node-version : " 12.x"
15- - run : yarn install --frozen-lockfile
16- - run : yarn test
17- - run : yarn build
14+ node-version : ' 18.x'
15+ - run : npm i -g pnpm
16+ - run : pnpm install --frozen-lockfile
17+ - run : pnpm test
18+ - run : pnpm build
1819 - run : yarn pack --filename=release.tgz
1920 - name : Publish on NPM
2021 if : " !contains(github.event.head_commit.message, '[skip publish]')"
2122 uses : JS-DevTools/npm-publish@v1
2223 with :
2324 package : build/package.json
24- token : " ${{ secrets.NPM_TOKEN }}"
25+ token : ' ${{ secrets.NPM_TOKEN }}'
2526 - uses : Klemensas/action-autotag@stable
2627 if : " !contains(github.event.head_commit.message, '[skip publish]')"
2728 id : update_tag
2829 with :
29- GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
30- tag_prefix : " v "
30+ GITHUB_TOKEN : ' ${{ secrets.GITHUB_TOKEN }}'
31+ tag_prefix : ' v '
3132 - name : Create Release
3233 if : " !contains(github.event.head_commit.message, '[skip publish]') && steps.update_tag.outputs.tagname"
3334 uses : actions/create-release@v1
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Pull Requests
22
33on :
44 pull_request :
5- branches : [master, develop]
5+ branches : [ master, develop ]
66jobs :
77 build :
88 runs-on : ubuntu-latest
1111 - uses : actions/checkout@v2
1212 - uses : actions/setup-node@v1
1313 with :
14- node-version : " 12.x"
15- - run : yarn install --frozen-lockfile
16- - run : yarn test
17- - run : yarn build
14+ node-version : ' 18.x'
15+ - run : npm i -g pnpm
16+ - run : pnpm install --frozen-lockfile
17+ - run : pnpm test
18+ - run : pnpm build
You can’t perform that action at this time.
0 commit comments