Skip to content

Commit

Permalink
chore: release script
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 10, 2024
1 parent 2756491 commit bcb92f2
Show file tree
Hide file tree
Showing 5 changed files with 849 additions and 38 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020-2021 Anthony Fu
Copyright (c) 2020-PRESENT Anthony Fu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
21 changes: 21 additions & 0 deletions packages/vscode/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020-PRESENT Slidev Team

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
5 changes: 3 additions & 2 deletions packages/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"main": "./dist/index.cjs",
"icon": "dist/res/logo.png",
"engines": {
"vscode": "^1.52.0"
"vscode": "^1.89.0"
},
"activationEvents": [
"onStartupFinished"
Expand Down Expand Up @@ -319,6 +319,7 @@
"@vue/reactivity": "^3.4.27",
"@vue/runtime-core": "^3.4.27",
"@vue/shared": "^3.4.27",
"get-port-please": "^3.1.2"
"get-port-please": "^3.1.2",
"ovsx": "^0.9.1"
}
}
9 changes: 9 additions & 0 deletions packages/vscode/scripts/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ async function publish() {
return
}

if (!process.env.VSCE_TOKEN) {
console.error('Missing VSCE_TOKEN')
process.exit(1)
}
if (!process.env.OVSX_TOKEN) {
console.error('Missing OVSX_TOKEN')
process.exit(1)
}

console.log('Publishing VS Code extension...')

await execa('npm', ['run', 'build'], { cwd: root, stdio: 'inherit' })
Expand Down
Loading

0 comments on commit bcb92f2

Please sign in to comment.