From 3a8855f175cdbe2cc27d09f41f970289e55c36bb Mon Sep 17 00:00:00 2001 From: taozhi8833998 Date: Sat, 27 Jan 2024 19:44:51 +0800 Subject: [PATCH] refactor: move env --- .github/workflows/npm-publish-github-packages.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml index 8bde37ad..5bcce770 100644 --- a/.github/workflows/npm-publish-github-packages.yml +++ b/.github/workflows/npm-publish-github-packages.yml @@ -42,9 +42,9 @@ jobs: run: npm config set strict-ssl true - run: npm run build - - run: cd output/prod && npm publish env: NODE_AUTH_TOKEN: ${{secrets.PUBLISH_NPM_TOKEN}} + - run: cd output/prod && npm publish publish-gpr: needs: build @@ -72,6 +72,6 @@ jobs: run: sed -i '2,2s/node-sql-parser/@taozhi8833998\/node-sql-parser/g' package.json - run: echo registry=https://npm.pkg.github.com/taozhi8833998 >> .npmrc - run: npm run build - - run: cd output/prod && npm publish env: NODE_AUTH_TOKEN: ${{secrets.PUBLISH_GITHUB_TOKEN}} + - run: cd output/prod && npm publish