From f2f7bc45e99f807c3edde1c1471fe166065a38f0 Mon Sep 17 00:00:00 2001 From: MillenniumEarl Date: Sun, 22 Nov 2020 12:39:08 +0100 Subject: [PATCH] Updated publish workflow --- .github/workflows/publish.yml | 5 +++-- .npmrc | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4d662cd..4d95da9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -34,7 +34,8 @@ jobs: - run: yarn publish env: NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} - publich-npm: + publish-npm: + needs: publish-gpr runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -44,7 +45,7 @@ jobs: node-version: '12.x' registry-url: 'https://registry.npmjs.org' - run: npm install - - run: npm publish + - run: npm publish --access public env: NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} diff --git a/.npmrc b/.npmrc index a72de50..64c80c0 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,3 @@ registry=https://npm.pkg.github.com/@millenniumearl -registry=https://registry.npmjs.org \ No newline at end of file +registry=https://registry.npmjs.org +always-auth=true \ No newline at end of file