From d0736d5a58f243592c76e26547a6d674cb90bcaf Mon Sep 17 00:00:00 2001 From: Moritz Vetter <16950410+Isokaeder@users.noreply.github.com> Date: Tue, 14 May 2024 11:34:07 +0200 Subject: [PATCH] fix(ci): use npmrc to provide desired registry Co-Authored-By: Florian Wendelborn <1133858+FlorianWendelborn@users.noreply.github.com> --- .github/workflows/publish.yml | 2 ++ internals/scripts/source/npmrc-template | 1 + 2 files changed, 3 insertions(+) create mode 100644 internals/scripts/source/npmrc-template diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 976fc4b0f5..18fa956536 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -34,6 +34,8 @@ jobs: # make extra sure this publish wouldn’t break anything - run: yarn run build check test + - run: cp internals/scripts/source/npmrc-template ./.npmrc + - name: publish run: bun internals/scripts/source/publish.ts env: diff --git a/internals/scripts/source/npmrc-template b/internals/scripts/source/npmrc-template new file mode 100644 index 0000000000..f3b1a9fcbc --- /dev/null +++ b/internals/scripts/source/npmrc-template @@ -0,0 +1 @@ +//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}