From 68b7e1ba79751dff93ad78e146727c270a3b185c Mon Sep 17 00:00:00 2001 From: snomiao Date: Mon, 18 Nov 2024 11:21:46 +0800 Subject: [PATCH] chore(workflows): publish npmjs publish npmjs --- .github/workflows/npm-publish.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 8382683..8f9d058 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -12,7 +12,10 @@ jobs: - uses: actions/checkout@v4 - uses: oven-sh/setup-bun@v1 - uses: actions/setup-node@v4 + with: + node-version: '20.x' + registry-url: 'https://registry.npmjs.org' - run: bun install - run: npm publish --provenance --access public - env: + env:f NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}