mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
* Split git tag and github release options * Rename to push-git-tags * Validate inputs
36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
name: Changesets - Publish
|
|
description: Publish packages to npm
|
|
runs:
|
|
using: node24
|
|
main: ../dist/publish.js
|
|
inputs:
|
|
github-token:
|
|
description: "The GitHub token to use for authentication. Defaults to the GitHub-provided token."
|
|
required: false
|
|
default: ${{ github.token }}
|
|
script:
|
|
description: "The command to use to publish packages"
|
|
required: false
|
|
pack-dir-artifact-id:
|
|
description: "Artifact id for packed publish output generated by the pack subaction"
|
|
required: false
|
|
create-github-releases:
|
|
description: "Whether to create Github releases after publish"
|
|
required: false
|
|
default: true
|
|
push-git-tags:
|
|
description: >
|
|
Whether to create git tags after publish. If `create-github-releases` is set to `true`,
|
|
this option will also always be `true`.
|
|
required: false
|
|
default: true
|
|
outputs:
|
|
published:
|
|
description: "A boolean value to indicate whether a publishing has happened or not"
|
|
published-packages:
|
|
description: >
|
|
A JSON array to present the published packages. The format is `[{"name": "@xx/xx", "version": "1.2.0"}, {"name": "@xx/xy", "version": "0.8.9"}]`
|
|
branding:
|
|
icon: package
|
|
color: blue
|