Skip to content

Commit 2ac2261

Browse files
committed
fix #3 for yarn publish
1 parent c90aa1b commit 2ac2261

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,17 @@ jobs:
3636
with:
3737
node-version: '12.x'
3838
always-auth: true
39-
scope: '@nodefactory'
4039
registry-url: 'https://registry.npmjs.org'
41-
40+
env:
41+
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
4242
- name: Install dependencies
4343
run: yarn install --frozen-lockfile --non-interactive
4444

4545
- name: Build packages
4646
run: yarn run build
4747

48+
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NODE_AUTH_TOKEN }}" > ~/.npmrc
49+
4850
- name: Publish packages
4951
# manual switch to latest
5052
run: yarn publish --ignore-scripts --no-git-tag-version --no-commit-hooks --non-interactive --tag beta

0 commit comments

Comments
 (0)