Skip to content

Commit fd7d9f9

Browse files
committed
ci: Fix ci yaml
1 parent 33fa8e8 commit fd7d9f9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,27 @@ on:
1010

1111
jobs:
1212
install:
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-18.04
1414
steps:
1515
- uses: actions/checkout@v1
1616
- uses: actions/setup-node@v1
1717
with:
1818
node-version: 12
1919
- run: |
2020
yarn install
21+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}"
2122
yarn test
2223
2324
publish-npm:
2425
needs: install
25-
runs-on: ubuntu-latest
26+
runs-on: ubuntu-18.04
2627
steps:
2728
- uses: actions/checkout@v1
2829
- uses: actions/setup-node@v1
2930
with:
3031
node-version: 12
3132
registry-url: https://registry.npmjs.org/
32-
- run: |
33-
echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
34-
npx semantic-release
33+
- run: npx semantic-release
3534
env:
3635
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3736
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)