Skip to content

Commit a0b4544

Browse files
committed
install yarn on github actions
1 parent 3f208f0 commit a0b4544

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.github/workflows/build.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ jobs:
1010
- uses: actions/setup-node@v1
1111
with:
1212
node-version: 10
13-
- run: npm lint
14-
- run: npm test
15-
- run: npm build
13+
- run: npm install -g yarn
14+
- run: yarn install --pure-lockfile
15+
- run: yarn lint
16+
- run: yarn test
17+
- run: yarn build
1618

1719

.github/workflows/npmpublish.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ jobs:
1212
- uses: actions/setup-node@v1
1313
with:
1414
node-version: 10
15-
- run: npm lint
16-
- run: npm test
17-
- run: npm build
15+
- run: npm install -g yarn
16+
- run: yarn install --pure-lockfile
17+
- run: yarn lint
18+
- run: yarn test
19+
- run: yarn build
1820

1921
publish-npm:
2022
needs: build
@@ -25,6 +27,8 @@ jobs:
2527
with:
2628
node-version: 10
2729
registry-url: https://registry.npmjs.org/
30+
- run: npm install -g yarn
31+
- run: yarn install --pure-lockfile
2832
- run: npm publish
2933
env:
3034
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)