From 7a486c14f522c677e0ed3dccac9e56d0aaaa8ea2 Mon Sep 17 00:00:00 2001 From: Cheng Wang Date: Mon, 30 Oct 2023 16:39:16 +0800 Subject: [PATCH] set npm token --- .github/workflows/publish.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index af6e3b5..296e503 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,9 +20,8 @@ jobs: cache-dependency-path: 'yarn.lock' registry-url: https://registry.npmjs.org/ - run: yarn set version stable + - run: yarn config set npmAuthToken ${{secrets.NPM_TOKEN}} - run: yarn - run: yarn workspace connect-miniprogram run build - run: yarn workspace example-mina test-build-result - run: yarn workspace connect-miniprogram npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}