-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
41 lines (35 loc) · 977 Bytes
/
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
name: Export Version
description: Extract package version from package.json and export it
author: bubkoo <[email protected]>
branding:
icon: at-sign
color: yellow
inputs:
GITHUB_TOKEN:
description: Your GitHub token for authentication
required: true
source:
description: The package.json path or the directory path contains package.json
default: package.json
required: false
target:
description: The auto generated target file path
default: src/version.ts
required: false
template:
description: The code template to export version
required: false
default: |
/* eslint-disable */
/**
* Auto generated version file, do not modify it!
*/
const version = '{{ version }}';
export { version };
commitMessage:
description: Commit message of the github action.
required: false
default: 'chore: update version file [skip ci]'
runs:
using: node16
main: dist/index.js