diff --git a/.github/workflows/publish-master.yml b/.github/workflows/publish-master.yml index 82c49165986..b21e315576a 100644 --- a/.github/workflows/publish-master.yml +++ b/.github/workflows/publish-master.yml @@ -41,7 +41,14 @@ jobs: - name: Install and build packages run: yarn && yarn setup + - name: Verify npm authentication within yarn + env: + CI_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + run: yarn npm whoami + - name: Publish to npm + env: + CI_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: yarn ts-scripts publish -t latest npm - name: Publish to docker diff --git a/.github/workflows/publish-tag.yml b/.github/workflows/publish-tag.yml index 289bc36c608..52841279a37 100644 --- a/.github/workflows/publish-tag.yml +++ b/.github/workflows/publish-tag.yml @@ -29,7 +29,14 @@ jobs: - name: Install and build packages run: yarn && yarn setup + - name: Verify npm authentication within yarn + env: + CI_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + run: yarn npm whoami + - name: Publish to npm + env: + CI_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: yarn ts-scripts publish -t tag npm docker-build-publish: diff --git a/.yarnrc.yml b/.yarnrc.yml index 035b76fc3b5..4621c01fca5 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -7,3 +7,5 @@ nodeLinker: node-modules yarnPath: .yarn/releases/yarn-4.6.0.cjs enableHardenedMode: false + +npmAuthToken: "${CI_NPM_AUTH_TOKEN:-placeHolderToken}"