From 26fd08dd28b2a9dbb5c859d512956c350e74363b Mon Sep 17 00:00:00 2001 From: Tao Jianhang <1516544795@qq.com> Date: Mon, 16 Oct 2023 15:13:06 +0800 Subject: [PATCH] =?UTF-8?q?ci(yml):=20=E6=9B=B4=E6=96=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fdc635f..af8be38 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,35 +5,16 @@ on: branches: - main +permissions: + contents: write + pull-requests: write + + jobs: release-please: runs-on: ubuntu-latest steps: - uses: google-github-actions/release-please-action@v3 - id: release with: release-type: node - package-name: release-please-action - # Checkout - - uses: actions/checkout@v3 - if: ${{ steps.release.outputs.release_created }} - # Setup node - - uses: actions/setup-node@v3 - with: - node-version: 20 - registry-url: 'https://registry.npmjs.org' - if: ${{ steps.release.outputs.release_created }} - # Setup pnpm - - uses: pnpm/action-setup@v2 - if: ${{ steps.release.outputs.release_created }} - # Install dependencies - - run: pnpm install - if: ${{ steps.release.outputs.release_created }} - # Build output - - run: pnpm build - if: ${{ steps.release.outputs.release_created }} - # Publish to npm - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - if: ${{ steps.release.outputs.release_created }} \ No newline at end of file + package-name: mtk-tool \ No newline at end of file