From 3b4986d14ca82405fdf0ec4ccf38b36f8e9fc465 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Wed, 22 Feb 2023 17:42:09 +0800 Subject: [PATCH] chore: update workflows config. --- .github/workflows/ci.yml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d4bd6ac..f53aebf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,12 +7,13 @@ env: SKIP_PREFLIGHT_CHECK: true jobs: build-deploy: - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: 14 + node-version: 16 + registry-url: 'https://registry.npmjs.org' - run: npm install - run: npm run build @@ -30,13 +31,13 @@ jobs: - name: ♻️ Is a tag created auto? id: create_tag - uses: jaywcjlove/create-tag-action@v1.3.4 + uses: jaywcjlove/create-tag-action@main with: package-path: ./package.json - name: Generate Changelog id: changelog - uses: jaywcjlove/changelog-generator@v1.4.8 + uses: jaywcjlove/changelog-generator@main if: steps.create_tag.outputs.successful with: token: ${{ secrets.GITHUB_TOKEN }} @@ -45,7 +46,7 @@ jobs: filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}' - name: ♻️ Create Release - uses: jaywcjlove/create-tag-action@v1.3.4 + uses: jaywcjlove/create-tag-action@main with: package-path: ./package.json release: true @@ -60,8 +61,8 @@ jobs: ${{ steps.changelog.outputs.changelog }} - - name: 📦 create-antdp publish to NPM - uses: JS-DevTools/npm-publish@v1 - with: - token: ${{ secrets.NPM_TOKEN }} - package: ./package.json + - run: npm publish + name: 📦 create-antdp publish to NPM + continue-on-error: true + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}