Skip to content

Commit

Permalink
fix command: version extraction not working properly
Browse files Browse the repository at this point in the history
spawnSync didn't have `{ shell: true }` set, thus the command wasn't
being interpreted correctly.
  • Loading branch information
JaninaWibkerQC committed Jan 12, 2025
1 parent 8c5c674 commit e5e9346
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion publish/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "publish",
"version": "1.0.17",
"version": "1.0.18",
"description": "An action that decides if a new release should be published",
"scripts": {
"build": "tsup",
Expand Down
2 changes: 1 addition & 1 deletion version-metadata/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "version-metadata",
"version": "1.0.17",
"version": "1.0.18",
"description": "An action that checks wether your package.json version has been updated with a bit of additional metadata",
"scripts": {
"build": "tsup",
Expand Down
3 changes: 2 additions & 1 deletion version-metadata/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,8 @@ const parseVersionFromFileContentsCommand = (
): { success: false; error: string } | { success: true; version: string } => {
const child = spawnSync(command, [], {
input: fileContent,
encoding: 'utf-8'
encoding: 'utf-8',
shell: true
})

if (child.error) {
Expand Down

0 comments on commit e5e9346

Please sign in to comment.