Skip to content

add github action #341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions publish/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish to pkg.pr.new
description: "Creates an preview release using pkg.pr.new. Note: the GitHub App must be installed on the repo."
inputs:
args:
description: args passed to `pkg-pr-new publish`
required: false
default: ""
pkg-pr-new-version:
description: version of pkg-pr-new to use
required: false
default: latest
runs:
using: composite
steps:
- name: Run pkg-pr-new publish
shell: bash
run: |
npx -y pkg-pr-new@${{ inputs.pkg-pr-new-version }} publish ${{ inputs.args }}
Loading