Skip to content

Commit 571920b

Browse files
committed
ci: update actions
1 parent 1f781c3 commit 571920b

2 files changed

Lines changed: 15 additions & 13 deletions

File tree

.github/workflows/main.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Releases
22

33
on:
44
push:
5-
branches: [master, develop]
5+
branches: [ master, develop ]
66
jobs:
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

.github/workflows/pull_requests.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Pull Requests
22

33
on:
44
pull_request:
5-
branches: [master, develop]
5+
branches: [ master, develop ]
66
jobs:
77
build:
88
runs-on: ubuntu-latest
@@ -11,7 +11,8 @@ 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

0 commit comments

Comments
 (0)