From 10d8515909a90671145b25237df2c386e4b07394 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 5c4eb3da9a..cc879316b3 100644 --- a/.github/workflows/feature-branches.yml +++ b/.github/workflows/feature-branches.yml @@ -64,5 +64,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 7343bd95a8..67bca07565 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -90,7 +90,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",