diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index fb98c79..51cc0d4 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -8,6 +8,7 @@ runs: uses: actions/setup-node@v3 with: node-version-file: .nvmrc + always-auth: true - name: Cache dependencies id: yarn-cache diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 87a153a..bfe6438 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,8 @@ jobs: - name: Pack package run: yarn pack + - name: Write authtoken + run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTOMATION_TOKEN }}" > ~/.npmrc + - name: Publish package run: yarn npm publish --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}