File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 85
85
file : package.json
86
86
run : |
87
87
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
88
92
- name : package.json (yarn@bun@1.1.0)
89
93
file : package.json
90
94
run : |
Original file line number Diff line number Diff line change 1
1
import { debug , warning } from "@actions/core" ;
2
2
import { info } from "node:console" ;
3
3
import { existsSync , readFileSync , renameSync } from "node:fs" ;
4
- import { join , basename } from "node:path" ;
4
+ import { resolve , basename } from "node:path" ;
5
5
6
6
export function retry < T > (
7
7
fn : ( ) => Promise < T > ,
@@ -48,7 +48,7 @@ export function readVersionFromFile(file: string): string | undefined {
48
48
49
49
debug ( `Reading version from ${ file } ` ) ;
50
50
51
- const path = join ( cwd , file ) ;
51
+ const path = resolve ( cwd , file ) ;
52
52
const base = basename ( file ) ;
53
53
54
54
if ( ! existsSync ( path ) ) {
You can’t perform that action at this time.
0 commit comments