Skip to content

Commit 5befb37

Browse files
committed
fixed npm publish
1 parent 18cb48f commit 5befb37

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
- uses: actions/setup-node@v1
1515
with:
1616
node-version: ${{ matrix.node }}
17+
- name: Setup NPM
18+
run: npm config set scripts-prepend-node-path true
1719
- run: yarn install
1820
- run: yarn build
1921
- run: yarn test

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
- uses: actions/setup-node@v1
1414
with:
1515
node-version: 10
16+
registry-url: 'https://registry.npmjs.org'
17+
- name: Setup NPM
18+
run: npm config set scripts-prepend-node-path true
1619
- run: yarn install
1720
- run: yarn build
1821
- run: yarn test
@@ -21,7 +24,7 @@ jobs:
2124
- run: yarn wsrun -p 'fractal-component' --stages bundlesize
2225
- name: Publish to NPM
2326
env:
24-
INPUT_TOKEN: "${{ secrets.NPM_TOKEN }}"
27+
NODE_AUTH_TOKEN: "${{ secrets.NPM_TOKEN }}"
2528
run: |
2629
echo "attempt to publish package to NPM..."
2730
npm config set scripts-prepend-node-path true

0 commit comments

Comments
 (0)