Skip to content

Commit

Permalink
ci: add publish to open-vsx.org
Browse files Browse the repository at this point in the history
  • Loading branch information
2214962083 committed Jul 26, 2024
1 parent 2a3b4ed commit 00404a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ jobs:
- name: Test
run: pnpm run test

- name: Build
run: pnpm run build:minify

- name: Publish
run: pnpm run publish
env:
Expand Down
13 changes: 7 additions & 6 deletions scripts/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@ const publish = async () => {
],
{ cwd: root, stdio: 'inherit' }
)
// console.log('\nPublish to OVSE...\n')
// await execa(
// 'npx',
// ['ovsx', 'publish', '--no-dependencies', '-p', process.env.OVSX_TOKEN!],
// { cwd: root, stdio: 'inherit' }
// )

console.log('\nPublish to OVSE...\n')
await execa(
'npx',
['ovsx', 'publish', '--no-dependencies', '-p', process.env.OVSX_TOKEN!],
{ cwd: root, stdio: 'inherit' }
)
} finally {
await fs.writeFile(pkgPath, rawJSON, 'utf-8')
}
Expand Down

0 comments on commit 00404a0

Please sign in to comment.