diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 27e94fd4..b3722b2d 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -36,6 +36,8 @@ jobs: run: | yarn yarn npm publish + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" publish-npm: runs-on: ubuntu-latest needs: release-please diff --git a/.yarnrc.yml b/.yarnrc.yml index 08f0650d..f355672b 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -2,7 +2,14 @@ nmMode: hardlinks-local nodeLinker: node-modules -npmAuthToken: "${NODE_AUTH_TOKEN:-}" +npmRegistries: + //npm.pkg.github.com: + npmAuthToken: "${GITHUB_TOKEN-}" + +npmScopes: + storipress: + npmPublishRegistry: "https://npm.pkg.github.com" + npmRegistryServer: "https://npm.pkg.github.com" plugins: - path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs