From 8c0d56030f57ad9bfe3cf81a287994f0eb1d9d1b Mon Sep 17 00:00:00 2001 From: infiniteXyy Date: Sun, 10 Nov 2024 00:38:41 +0800 Subject: [PATCH] chore: test ci publish --- .github/workflows/publish.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9b11b68..2558398 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,15 +10,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - - name: setup node - uses: actions/setup-node@v4 - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - + - uses: actions/setup-node@v4 + with: + registry-url: 'https://registry.npmjs.org' - uses: pnpm/action-setup@v4 with: run_install: true - - name: publish run: pnpm test && npm run publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}