From b73f52b8c762e8c007171b770f1553932d00ea80 Mon Sep 17 00:00:00 2001 From: "Lain." Date: Thu, 16 May 2024 10:26:58 +0800 Subject: [PATCH] fix: push --- .github/workflows/npm-publish.yml | 3 +++ package.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index bb45e4e..01061fb 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -18,6 +18,9 @@ jobs: uses: actions/setup-node@v2 with: node-version: 16 + registry-url: 'https://registry.npmjs.org/' + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - name: Install Dependencies run: npm install diff --git a/package.json b/package.json index 6054bda..396762b 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "package.json" ], "scripts": { - "build": "node build.js" + "build": "node build.js", + "pub": "npm publish --access public" } } \ No newline at end of file