Skip to content

Commit bc04a67

Browse files
committed
Run npm install in release stage
1 parent a221d7f commit bc04a67

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
run: |
1717
git config user.name "${GITHUB_ACTOR}"
1818
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
19-
- run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
2019
- run: npm install
2120
- run: npm test
2221
- uses: codecov/codecov-action@v2
@@ -29,6 +28,15 @@ jobs:
2928
if: github.ref == 'refs/heads/master'
3029
runs-on: ubuntu-latest
3130
steps:
31+
- uses: actions/checkout@v2
32+
with:
33+
fetch-depth: 0
34+
- name: git config
35+
run: |
36+
git config user.name "${GITHUB_ACTOR}"
37+
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
38+
- run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
39+
- run: npm install
3240
- run: npm run release
3341
env:
3442
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)