From 2ac2261df2984322dcfa1a85e7f88f3c59cc7675 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marin=20Petruni=C4=87?= Date: Thu, 3 Sep 2020 13:20:28 +0200 Subject: [PATCH] fix #3 for yarn publish --- .github/workflows/publish.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bf9177d..25389b8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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