From afa0152c5258f42df944d941ce56bd84311ea957 Mon Sep 17 00:00:00 2001 From: CobyPear Date: Wed, 5 Apr 2023 10:41:09 -0500 Subject: [PATCH] Move .npmrc write out of actions --- .github/workflows/canary-release.yml | 5 +---- .github/workflows/canary-sites-split.yml | 1 + .github/workflows/release-and-split.yml | 5 +---- .npmrc | 1 + 4 files changed, 4 insertions(+), 8 deletions(-) create mode 100644 .npmrc diff --git a/.github/workflows/canary-release.yml b/.github/workflows/canary-release.yml index 4b4c9088c..01a076df6 100644 --- a/.github/workflows/canary-release.yml +++ b/.github/workflows/canary-release.yml @@ -26,10 +26,6 @@ jobs: with: node-version: 18 cache: 'pnpm' - - name: Setup npmrc - run: - echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > - .npmrc - name: install dependencies run: pnpm install - name: create and publish versions @@ -41,6 +37,7 @@ jobs: title: 'Canary Release' env: GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Send custom JSON data to Slack workflow uses: slackapi/slack-github-action@v1.23.0 id: slack diff --git a/.github/workflows/canary-sites-split.yml b/.github/workflows/canary-sites-split.yml index 797bf51f5..1241f2dea 100644 --- a/.github/workflows/canary-sites-split.yml +++ b/.github/workflows/canary-sites-split.yml @@ -15,6 +15,7 @@ jobs: runs-on: ubuntu-latest env: GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} strategy: fail-fast: false diff --git a/.github/workflows/release-and-split.yml b/.github/workflows/release-and-split.yml index dbd37d7b9..c2fd08f1f 100644 --- a/.github/workflows/release-and-split.yml +++ b/.github/workflows/release-and-split.yml @@ -27,10 +27,6 @@ jobs: with: node-version: 18 cache: 'pnpm' - - name: Setup npmrc - run: - echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > - .npmrc - name: install dependencies run: pnpm install - name: create and publish versions @@ -42,6 +38,7 @@ jobs: publish: pnpm ci:publish env: GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Send custom JSON data to Slack workflow id: slack uses: slackapi/slack-github-action@v1.23.0 diff --git a/.npmrc b/.npmrc new file mode 100644 index 000000000..bd3327ab5 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +//registry.npmjs.org/:_authToken=${NPM_TOKEN} \ No newline at end of file