generated from JS-DevTools/template-node-typescript
-
Notifications
You must be signed in to change notification settings - Fork 74
/
action.yml
60 lines (47 loc) · 1.51 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
49
50
51
52
53
54
55
56
57
58
59
60
# GitHub Action
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/metadata-syntax-for-github-actions
name: NPM Publish
description: Fast, easy publishing to NPM
author: James Messinger
branding:
color: blue
icon: package
inputs:
token:
description: The NPM access token to use when publishing
required: true
registry:
description: The NPM registry URL to use
required: false
default: https://registry.npmjs.org/
package:
description: The path of your package.json file
required: false
default: package.json
tag:
description: The tag to publish to. This allows people to install the package using "npm install <package-name>@<tag>".
required: false
default: "latest"
access:
description:
Determines whether the published package should be publicly visible, or restricted to members of your NPM organization.
This only applies to scoped packages.
required: false
dry-run:
description: If true, run with the --dry-run flag
required: false
default: "false"
check-version:
description: Only publish if the version in package.json differs from the latest on NPM
required: false
default: "true"
outputs:
type:
description: The type of version change that occurred ("none", "major", "minor", "patch", etc.)
version:
description: The version that was published
old-version:
description: The version number that was previously published to NPM
runs:
using: node12
main: dist/index.js