]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
ci: use trusted publisher for npm publish [skip ci]
authorHaoqun Jiang <github@haoqun.me>
Tue, 30 Sep 2025 01:57:10 +0000 (10:57 +0900)
committerHaoqun Jiang <github@haoqun.me>
Tue, 30 Sep 2025 01:57:10 +0000 (10:57 +0900)
.github/workflows/publish.yml

index 892824ec97e35725b73d147816119f43bc744f40..177686597e5c0f06ecaeff71dab78482fbe549a4 100644 (file)
@@ -23,7 +23,8 @@ jobs:
         with:
           node-version: 'lts/*'
           registry-url: 'https://registry.npmjs.org'
+      # Ensure npm 11.5.1 or later is installed
+      - name: Update npm
+        run: npm install -g npm@latest
       - run: pnpm install
       - run: pnpm publish --no-git-checks
-        env:
-          NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}