From ec333f2437283488797106a91fd16b48e78eaa07 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 31 Mar 2023 22:52:53 +0800 Subject: [PATCH] chore: update workflows config. --- .github/workflows/ci.yml | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7235e0a..38f69f35 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,12 +5,13 @@ on: - master jobs: build: - runs-on: ubuntu-22.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 @@ -25,13 +26,13 @@ jobs: - name: ♻️ Is a tag created auto? id: create_tag - uses: jaywcjlove/create-tag-action@v1.3.6 + uses: jaywcjlove/create-tag-action@main with: package-path: ./package.json - name: get tag version id: tag_version - uses: jaywcjlove/changelog-generator@v1.5.0 + uses: jaywcjlove/changelog-generator@main - name: Deploy uses: peaceiris/actions-gh-pages@v3 @@ -42,14 +43,14 @@ jobs: - name: 📝 Generate Changelog id: changelog - uses: jaywcjlove/changelog-generator@v1.5.0 + uses: jaywcjlove/changelog-generator@main with: head-ref: ${{steps.create_tag.outputs.version}} filter-author: (renovate-bot|dependabot|dependabot\[bot\]|Renovate Bot) filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}' - name: ♻️ Create Release - uses: jaywcjlove/create-tag-action@v1.3.6 + uses: jaywcjlove/create-tag-action@main with: package-path: ./package.json release: true @@ -62,8 +63,10 @@ jobs: ${{ steps.changelog.outputs.changelog }} - run: git status - - name: 📦 @uiw/react-monacoeditor publish to NPM - uses: JS-DevTools/npm-publish@v1 - with: - token: ${{ secrets.NPM_TOKEN }} - package: ./package.json + + - run: npm publish --access public + name: 📦 @uiw/react-monacoeditor publish to NPM + continue-on-error: true + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + \ No newline at end of file