From 3e38eddfde3aa2503791c12283594fc44e8ced6b Mon Sep 17 00:00:00 2001 From: Xun Li Date: Thu, 16 Sep 2021 14:51:43 -0700 Subject: [PATCH] update registry-url when publish to NPM --- .github/workflows/build_and_publish.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build_and_publish.yml b/.github/workflows/build_and_publish.yml index 3edc1b8..d0f48f8 100644 --- a/.github/workflows/build_and_publish.yml +++ b/.github/workflows/build_and_publish.yml @@ -45,6 +45,12 @@ jobs: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} # Publish to NPM registry + - name: Use Node.js ${{ matrix.node-version }} for NPM + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + registry-url: https://registry.npmjs.org/ + - name: Publish to NPM Registry run: | rm .npmrc