Skip to content

Commit

Permalink
chore: update pkg.pr.new gh action (#230)
Browse files Browse the repository at this point in the history
* chore: update `pkg.pr.new` gh action

* chore: simply to test the release

* chore: remove `--compact`

* chore: revert package.json names

* chore: fix lint

* chore: revert repository stuff

* chore: update workflow

Release on every PR commit and main branch (excluding tags)

* chore: remove `pkg.pr.new` dev dependency

* chore: run publish action with `dlx`
  • Loading branch information
userquin authored Aug 15, 2024
1 parent 0762cff commit 06edcd5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/publish-commit.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 06edcd5

Please sign in to comment.