File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 8585 file : package.json
8686 run : |
8787 echo "$(jq '. += {"packageManager": "bun@1.1.0"}' package.json)" > package.json
88+ - name : /foo/package.json (bun@1.1.0)
89+ file : /foo/package.json
90+ run : |
91+ echo "$(jq '. += {"packageManager": "bun@1.1.0"}' package.json)" > /foo/package.json
8892 - name : package.json (yarn@bun@1.1.0)
8993 file : package.json
9094 run : |
Original file line number Diff line number Diff line change 11import { debug , warning } from "@actions/core" ;
22import { info } from "node:console" ;
33import { existsSync , readFileSync , renameSync } from "node:fs" ;
4- import { join , basename } from "node:path" ;
4+ import { resolve , basename } from "node:path" ;
55
66export function retry < T > (
77 fn : ( ) => Promise < T > ,
@@ -48,7 +48,7 @@ export function readVersionFromFile(file: string): string | undefined {
4848
4949 debug ( `Reading version from ${ file } ` ) ;
5050
51- const path = join ( cwd , file ) ;
51+ const path = resolve ( cwd , file ) ;
5252 const base = basename ( file ) ;
5353
5454 if ( ! existsSync ( path ) ) {
You can’t perform that action at this time.
0 commit comments