From 56c5cab91cf02ce0dfc24d9e8fc1fdbc3a93d0a0 Mon Sep 17 00:00:00 2001 From: Mikyo King Date: Tue, 9 Jan 2024 11:33:30 -0700 Subject: [PATCH] ci(js): change registry config --- .github/workflows/typescript-publish.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/typescript-publish.yaml b/.github/workflows/typescript-publish.yaml index 62d16ded3..8bf0d98d7 100644 --- a/.github/workflows/typescript-publish.yaml +++ b/.github/workflows/typescript-publish.yaml @@ -19,13 +19,14 @@ jobs: uses: actions/setup-node@v3 with: node-version: 16 + registry-url: "https://registry.npmjs.org" - name: Setup PNPM uses: pnpm/action-setup@v2 with: version: 8 - - name: Setup npmrc + - name: NPM login working-directory: ./js - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc + run: pnpm login - name: setup pnpm config run: pnpm config set store-dir $PNPM_CACHE_FOLDER - name: Install Dependencies @@ -41,3 +42,4 @@ jobs: cwd: "./js" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}