From b90daae73c8490018fd6bf750eac7777e098a2f5 Mon Sep 17 00:00:00 2001 From: zhaoyuuu <13387281442@163.com> Date: Sun, 19 Feb 2023 13:18:44 +0800 Subject: [PATCH 1/2] fix: publish cicd --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 714a51e..1236e4c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,7 +5,7 @@ on: types: [published] jobs: - run_test_and_build: + run_test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -13,7 +13,6 @@ jobs: with: node-version: 16 - run: npm ci - - run: npm run test:nowatch - run: npm run build publish-npm: @@ -26,6 +25,7 @@ jobs: node-version: 16 registry-url: https://registry.npmjs.org/ - run: npm ci + - run: npm run test:nowatch - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} From c3f7047a9d9904b2503b4066a73f26ed172d639d Mon Sep 17 00:00:00 2001 From: zhaoyuuu <13387281442@163.com> Date: Sun, 19 Feb 2023 13:20:28 +0800 Subject: [PATCH 2/2] fix: publish cicd --- .github/workflows/publish.yml | 6 +++--- .gitignore | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1236e4c..8926961 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,10 +13,10 @@ jobs: with: node-version: 16 - run: npm ci - - run: npm run build + - run: npm run test:nowatch publish-npm: - needs: run_test_and_build + needs: run_test runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -25,7 +25,7 @@ jobs: node-version: 16 registry-url: https://registry.npmjs.org/ - run: npm ci - - run: npm run test:nowatch + - run: npm run build - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} diff --git a/.gitignore b/.gitignore index 556f0d0..2fa56e4 100644 --- a/.gitignore +++ b/.gitignore @@ -9,7 +9,7 @@ /coverage # production -# /dist +/dist # misc .DS_Store