Skip to content

Commit a961131

Browse files
committed
fix: version matcher
1 parent e5ed3e1 commit a961131

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,6 @@ jobs:
116116
file: .tool-versions
117117
run: echo "bun 1.1.0" > .tool-versions
118118

119-
- name: .tool-versions (bun1.1.0)
120-
file: .tool-versions
121-
run: echo "bun1.1.0" > .tool-versions
122-
123119
- name: .tool-versions (bun 1.1.0)
124120
file: .tool-versions
125121
run: echo "bun 1.1.0" > .tool-versions

dist/setup/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const FILE_VERSION_READERS = {
3333
return pkg.packageManager?.split("bun@")?.[1] ?? pkg.engines?.bun;
3434
},
3535
".tool-versions": (content: string) =>
36-
content.match(/^bun\s+(?<version>.*?)$/m)?.groups?.version,
36+
content.match(/^bun\s+(?<version>\S+)$/m)?.groups?.version,
3737
".bumrc": (content: string) => content, // https://github.com/owenizedd/bum
3838
".bun-version": (content: string) => content,
3939
};

0 commit comments

Comments
 (0)