From 2dc7aa76e3053652b1321956af385afd12b03594 Mon Sep 17 00:00:00 2001 From: FliPPeDround <734243792@qq.com> Date: Mon, 10 Jul 2023 14:08:26 +0800 Subject: [PATCH] chore: release ci --- .github/workflows/release.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 973df3e..123f86f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,31 +6,38 @@ on: - 'v*' jobs: - release: + Release GitHub: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Install pnpm - - uses: pnpm/action-setup@v2 + uses: pnpm/action-setup@v2 - name: Set node - - uses: actions/setup-node@v3 + uses: actions/setup-node@v3 with: node-version: 18.x cache: pnpm - registry-url: https://registry.npmjs.org - - name: Publish github - run: npx changelogithub env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - - name: Install + Release npm: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + - uses: actions/setup-node@v3 + with: + node-version: 18 + cache: pnpm + registry-url: https://registry.npmjs.org + - run: corepack enable - run: pnpm install - - - name: Publish npm - run: pnpm publish --access public --no-git-checks env: NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}