Skip to content

Commit e72dfd6

Browse files
committed
fix github actions
1 parent 247362a commit e72dfd6

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/on-pull-request.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
uses: actions/setup-node@v2
1414
with:
1515
node-version: '14'
16+
- name: "Setup npm"
17+
run: |
18+
npm set "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}"
1619
- name: Install packages
1720
run: |
1821
npm ci

.github/workflows/on-push.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
uses: actions/setup-node@v2
1515
with:
1616
node-version: '14'
17+
- name: "Setup npm"
18+
run: |
19+
npm set "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}"
1720
- name: Install packages
1821
run: |
1922
npm ci

.github/workflows/on-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
12+
- name: "Setup npm"
13+
run: |
14+
npm set "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}"
1215
- name: Install packages
1316
run: |
1417
export NODE_ENV=dev

0 commit comments

Comments
 (0)