fix #3 for yarn publish

This commit is contained in:
Marin Petrunić 2020-09-03 13:20:28 +02:00
parent c90aa1b018
commit 2ac2261df2
No known key found for this signature in database
GPG Key ID: 834D07135E110DA5

View File

@ -36,15 +36,17 @@ jobs:
with:
node-version: '12.x'
always-auth: true
scope: '@nodefactory'
registry-url: 'https://registry.npmjs.org'
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
- name: Install dependencies
run: yarn install --frozen-lockfile --non-interactive
- name: Build packages
run: yarn run build
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NODE_AUTH_TOKEN }}" > ~/.npmrc
- name: Publish packages
# manual switch to latest
run: yarn publish --ignore-scripts --no-git-tag-version --no-commit-hooks --non-interactive --tag beta