File tree Expand file tree Collapse file tree 4 files changed +2
-18
lines changed Expand file tree Collapse file tree 4 files changed +2
-18
lines changed Original file line number Diff line number Diff line change 25
25
26
26
- name : Extract version
27
27
id : extract_version
28
- uses :
Saionaro/[email protected] .5
28
+ uses :
Saionaro/[email protected] .6
29
29
# From now you can access version
30
30
- name : Print version
31
31
run : echo ${{ steps.extract_version.outputs.version }}
Original file line number Diff line number Diff line change @@ -61,17 +61,9 @@ const workspace = process.env.GITHUB_WORKSPACE;
61
61
async function run ( ) {
62
62
try {
63
63
const packagePath = path . join ( workspace , "package.json" ) ;
64
-
65
- core . debug ( packagePath ) ;
66
-
67
64
const pkg = require ( packagePath ) ;
68
-
69
- core . debug ( pkg ) ;
70
-
71
65
const version = pkg . version . toString ( ) ;
72
66
73
- core . debug ( version ) ;
74
-
75
67
core . setOutput ( "version" , version ) ;
76
68
} catch ( error ) {
77
69
core . setFailed ( error . message ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " extract-package-version" ,
3
- "version" : " 1.0.5 " ,
3
+ "version" : " 1.0.6 " ,
4
4
"description" : " Allows you to get the npm version of the package in your Github Actions workflow" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -6,17 +6,9 @@ const workspace = process.env.GITHUB_WORKSPACE;
6
6
async function run ( ) {
7
7
try {
8
8
const packagePath = path . join ( workspace , "package.json" ) ;
9
-
10
- core . debug ( packagePath ) ;
11
-
12
9
const pkg = require ( packagePath ) ;
13
-
14
- core . debug ( pkg ) ;
15
-
16
10
const version = pkg . version . toString ( ) ;
17
11
18
- core . debug ( version ) ;
19
-
20
12
core . setOutput ( "version" , version ) ;
21
13
} catch ( error ) {
22
14
core . setFailed ( error . message ) ;
You can’t perform that action at this time.
0 commit comments