forked from the-guild-org/changesets-snapshot-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
48 lines (48 loc) · 1.82 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: ChangesetsSnapshot
description: A GitHub action to automate Changesets snapshot releases
runs:
using: "node16"
main: "dist/index.js"
inputs:
prepare-script:
description: "The command to use to build, this script runs after 'version' flow, and before 'publish' flow"
required: false
mode:
description: "snapshot | stable # default is snapshot. under the hood this will run `changeset version --snapshot` or `changeset version && git commit -m "
required: true
cwd:
description: Sets the cwd for the node process. Default to `process.cwd()`
required: false
setup-git-user:
description: Sets up the git user for commits as `"github-actions[bot]"`. Default to `true`
required: false
default: 'true'
commit:
description: Whether to commit the changeset.
required: false
tag:
description: Whether to tag the changeset.
required: false
github-release:
description: "A boolean value to indicate whether to create Github release"
required: false
comment:
description: Whether to upsert comment to PR.
required: false
release-codenames:
description: An array of dictionaries that containing the words to use for generating the release codename.
required: false
snapshot-tag:
description: The tag to use for snapshot releases. Default to current branch name.
required: false
outputs:
published:
description: A boolean value to indicate whether a publishing is 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"}]`
has-changesets:
description: A boolean about whether there were changesets. Useful if you want to create your own publishing functionality.
branding:
icon: "package"
color: "blue"