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 ae39479 commit 562847f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/bump-version.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import PackageJson from '@npmcli/package-json'
import assert from 'node:assert'
import * as path from 'node:path'
import { spawnSync } from 'node:child_process'
import { fileURLToPath } from 'node:url'
import semver from 'semver'
import { spawnSync } from 'child_process'

const __dirname = fileURLToPath(new URL('.', import.meta.url))

// Let `vsce` get the metadata for the extension
// Querying the marketplace API directly is not supported or recommended
let result = spawnSync(
'./node_modules/.bin/vsce',
path.resolve(__dirname, '../../node_modules/.bin/vsce'),
['show', 'bradlc.vscode-tailwindcss', '--json'],
{ encoding: 'utf8' },
)
Expand All @@ -16,6 +20,7 @@ let metadata = JSON.parse(result.stdout)
if (!metadata) {
console.error(result.stdout)
console.error(result.stderr)
console.error(result.error)
throw new Error('Failed to get extension metadata')
}

Expand Down

0 comments on commit 562847f

Please sign in to comment.