From 5003823fcf3155018715b4f9cee3fb406aec31cb Mon Sep 17 00:00:00 2001 From: FreeAoi Date: Tue, 9 Apr 2024 13:55:43 -0600 Subject: [PATCH] fix: publish workflow --- .github/workflows/publish.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 01f4daf..fe49810 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,10 +14,10 @@ jobs: uses: actions/checkout@v4 - name: Install Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - cache: "npm" - node-version: "lts/*" + node-version: '20.x' + registry-url: 'https://registry.npmjs.org' - name: Install dependencies run: npm ci @@ -25,8 +25,7 @@ jobs: - name: Create Release Pull Request uses: changesets/action@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} with: commit: "chore: release packages" publish: npm publish