From 6c318da30c3a63f3ad8679e87834ca6746f9b6df Mon Sep 17 00:00:00 2001 From: hxtree Date: Sun, 5 Nov 2023 02:34:04 +0000 Subject: [PATCH] feat: try github published packages Signed-off-by: hxtree --- .github/workflows/call-deploy.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/call-deploy.yml b/.github/workflows/call-deploy.yml index 81c40849..19c29c3a 100644 --- a/.github/workflows/call-deploy.yml +++ b/.github/workflows/call-deploy.yml @@ -72,10 +72,15 @@ jobs: - name: bump version run: node common/scripts/install-run-rush.js version --bump - - name: rush publish to npm - run: node common/scripts/install-run-rush.js publish --apply --publish --include-all --target-branch main --npm-auth-token ${NPM_TOKEN} --add-commit-details --set-access-level public + # - name: rush publish to npmjs.org + # run: node common/scripts/install-run-rush.js publish --apply --publish --include-all --target-branch main --npm-auth-token ${NPM_TOKEN} --add-commit-details --set-access-level public + # env: + # NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: rush publish to npm.pkg.github.com + run: node common/scripts/install-run-rush.js publish --apply --publish --include-all --registry https://npm.pkg.github.com/ --target-branch main --npm-auth-token ${NPM_TOKEN} --add-commit-details --set-access-level public env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_TOKEN: ${{secrets.GITHUB_TOKEN}} # deploy project for pipeline - name: rush artifact