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