diff --git a/.github/workflows/publish-commit.yml b/.github/workflows/publish-commit.yml index 5141201..3186be5 100644 --- a/.github/workflows/publish-commit.yml +++ b/.github/workflows/publish-commit.yml @@ -1,15 +1,15 @@ name: Publish Any Commit on: + pull_request: push: branches: - main - issue_comment: - types: [created] + tags: + - '!**' jobs: build: - if: github.repository == 'antfu-collective/ni' && (github.event_name == 'push' || github.event.issue.pull_request && startsWith(github.event.comment.body, '/pkg-pr-new')) runs-on: ubuntu-latest steps: @@ -23,7 +23,6 @@ jobs: run: pnpm install - name: Build - working-directory: . run: pnpm build - - run: pnpm dlx pkg-pr-new@0.0 publish --compact --pnpm . + - run: pnpm dlx pkg-pr-new publish --pnpm diff --git a/package.json b/package.json index f067175..191f156 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "homepage": "https://github.com/antfu-collective/ni#readme", "repository": { "type": "git", - "url": "https://github.com/antfu-collective/ni.git" + "url": "git+https://github.com/antfu-collective/ni.git" }, "bugs": { "url": "https://github.com/antfu-collective/ni/issues"