-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
61 lines (51 loc) · 1.93 KB
/
action.yaml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
name: NPM Publish Version
description: An action for publishing NPM packages with a specified version or against a given tag.
author: Matthew Usurp
branding:
color: purple
icon: briefcase
runs:
using: node16
main: build/action.js
inputs:
version:
required: true
description: |
The version you wish to publish.
This should be a semvar compliant version string with or without the "v" prefix.
Optionally this can be a "git-ref" path where the final segment is a semver compliant version string.
directory:
required: false
description: |
The directory of the package that you wish to publish.
This can be ignored if you are publishing the repository root.
Ensure a "package.json" can be found in this directory.
tag:
required: false
description: |
This is the "npm-dist-tag" mentioned in the official documentation.
Ignore this value and it will default to "latest" as expected.
Otherwise provide the development channel you wish this to be tagged as.
access:
required: false
description: |
This is the "npm-access" mentioned in the official documentation.
Ignore this value and it will default to "public" as expected.
Otherwise provide the string "private" to make a private package.
silent:
required: false
description: |
The action will silence the outputs of all the commands executed.
Ignore this value and output will be printed.
Otherwise provide a boolean truthy value.
execute:
required: false
description: |
The publish command will be ran instead of the staging/dry-run mode by default.
This is required to explicitly execute the commands as publishing can be messy otherwise.
Otherwise provide a boolean truthy value.
outputs:
version:
description: |
The version used to publish the package.
This value has been stripped of any prefixes and is a raw semver string.