From 1c6edd955adeb18c89de61d8f4b91be8ea41a754 Mon Sep 17 00:00:00 2001 From: Mikyo King Date: Tue, 9 Jan 2024 13:03:44 -0700 Subject: [PATCH] ci: attempt to setup npmrc in js --- .github/workflows/typescript-publish.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/typescript-publish.yaml b/.github/workflows/typescript-publish.yaml index a3b22dcf2..0542d7260 100644 --- a/.github/workflows/typescript-publish.yaml +++ b/.github/workflows/typescript-publish.yaml @@ -31,6 +31,9 @@ jobs: - name: Install Dependencies working-directory: ./js run: pnpm install --frozen-lockfile + - name: Setup npmrc + working-directory: ./js + run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc - name: create and publish versions uses: changesets/action@v1 with: @@ -40,4 +43,4 @@ jobs: publish: pnpm ci:publish cwd: "./js" env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}