forked from SunLxy/npm-publish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
60 lines (47 loc) · 1.54 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
name: 'npm publish for github action'
description: 'Upload all packages in the folder to the npm repository.'
author: 'SunLxy'
inputs:
workspaces:
description: 目录
required: false
# 一下参数为[@jsdevtools/npm-publish](https://github.com/JS-DevTools/npm-publish)包参数
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
tag:
description: The tag to publish to. This allows people to install the package using "npm install <package-name>@<tag>".
required: false
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: 'node16'
main: 'dist/index.js'
branding:
icon: 'package'
color: 'blue'