Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed Aug 7, 2024
1 parent 07949db commit ae39479
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/bump-version.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ import { spawnSync } from 'child_process'

// Let `vsce` get the metadata for the extension
// Querying the marketplace API directly is not supported or recommended
let stdout = spawnSync('node_modules/.bin/vsce', [
'show',
'bradlc.vscode-tailwindcss',
'--json',
]).stdout.toString('utf8')
let result = spawnSync(
'./node_modules/.bin/vsce',
['show', 'bradlc.vscode-tailwindcss', '--json'],
{ encoding: 'utf8' },
)

let metadata = JSON.parse(stdout)
let metadata = JSON.parse(result.stdout)

if (!metadata) {
console.error(result.stdout)
console.error(result.stderr)
throw new Error('Failed to get extension metadata')
}

Expand Down

0 comments on commit ae39479

Please sign in to comment.