Skip to content

Commit fac91c0

Browse files
committed
🔧 yarn-publish.yml updated
1 parent 1b9be2b commit fac91c0

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

.github/workflows/yarn-publish.yml

+11-13
Original file line numberDiff line numberDiff line change
@@ -12,38 +12,36 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v1
15+
- uses: actions/setup-node@v2
1616
with:
17-
node-version: '12.x'
18-
- run: yarn install --frozen-lockfile
17+
node-version: 12
18+
- run: yarn
1919
- run: yarn build
2020

2121
publish-npm:
2222
needs: build
2323
runs-on: ubuntu-latest
2424
steps:
2525
- uses: actions/checkout@v2
26-
- uses: actions/setup-node@v1
26+
- uses: actions/setup-node@v2
2727
with:
28-
node-version: '12.x'
28+
node-version: 12
2929
registry-url: https://registry.npmjs.org/
30-
always-auth: true
31-
- run: yarn install --frozen-lockfile
30+
- run: yarn
3231
- run: yarn publish
3332
env:
34-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
33+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3534

3635
publish-gpr:
3736
needs: build
3837
runs-on: ubuntu-latest
3938
steps:
4039
- uses: actions/checkout@v2
41-
- uses: actions/setup-node@v1
40+
- uses: actions/setup-node@v2
4241
with:
43-
node-version: '12.x'
42+
node-version: 12
4443
registry-url: https://npm.pkg.github.com/
45-
always-auth: true
46-
- run: yarn install --frozen-lockfile
44+
- run: yarn
4745
- run: yarn publish
4846
env:
49-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)