File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Release
33on :
44 push :
55 tags :
6- - ' v[0-9]+.[0-9]+.[0-9]+'
6+ - v[0-9]+.[0-9]+.[0-9]+
77
88jobs :
99 build :
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import {Outlet} from './outlet';
2020import { PluginClient } from './plugin-client' ;
2121import { Property } from './property' ;
2222import * as Utils from './utils' ;
23+ import pkg from './package.json' ;
2324
2425export {
2526 Action ,
@@ -43,7 +44,6 @@ export {
4344 Utils ,
4445} ;
4546
46- export function getVersion ( ) : number {
47- // eslint-disable-next-line @typescript-eslint/no-var-requires
48- return require ( './package.json' ) . version ;
47+ export function getVersion ( ) : string {
48+ return pkg . version ;
4949}
Original file line number Diff line number Diff line change 1+ ../package.json
You can’t perform that action at this time.
0 commit comments