From ecffe25ff5490ff7aeaeb88a8cfa387d8e38e103 Mon Sep 17 00:00:00 2001 From: jdallman Date: Fri, 10 Sep 2021 07:53:05 +0200 Subject: [PATCH] Unfortunately there seems to be a bug that pnpm does not pick up this env variable while -r for monorepo see: https://github.com/pnpm/pnpm/issues/2570 --- .github/workflows/feature-branches.yml | 3 ++- .github/workflows/release.yml | 4 +++- package.json | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/feature-branches.yml b/.github/workflows/feature-branches.yml index 8120f49357..9cca6ff1f8 100644 --- a/.github/workflows/feature-branches.yml +++ b/.github/workflows/feature-branches.yml @@ -61,5 +61,6 @@ jobs: if: github.event_name == 'workflow_dispatch' run: | pnpm install --production - pnpm publishall --no-git-checks + echo '//npm.coremedia.io/:_authToken=${NPM_AUTH_TOKEN}' > .npmrc + pnpm publishall -- --registry=https://npm.coremedia.io --no-git-checks diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9a34633324..3cc71ecb54 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -87,7 +87,9 @@ jobs: - name: Publish if: github.ref == 'refs/heads/main' run: | - pnpm publishall --no-git-checks + echo '//npm.coremedia.io/:_authToken=${NPM_AUTH_TOKEN}' > .npmrc + pnpm publishall -- --registry=https://npm.coremedia.io + git reset --hard # MAIN ONLY # Set next prerelease version to prepare for next build. # This ensures that we do not build one release number twice (for not getting conflicts in our repository) diff --git a/package.json b/package.json index 7597b8ea5e..1210d7485e 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ ], "scripts": { "bootstrap": "pnpm install", - "publishall": "pnpm -r publish --no-git-checks", + "publishall": "pnpm -r publish", "setversion": "set-version", "clean": "pnpm -r clean && rimraf ./dist", "build": "pnpm -r build",