AutoCommit/deploy.sh

39 lines
1.0 KiB
Bash
Raw Normal View History

2019-12-26 20:56:51 +08:00
###
# Author : OBKoro1
# Date : 2019-12-26 20:55:46
# LastEditors : OBKoro1
2020-11-18 16:41:00 +08:00
# LastEditTime : 2020-11-18 16:40:49
2020-10-27 17:04:50 +08:00
# FilePath : \autoCommit\deploy.sh
2019-12-26 20:56:51 +08:00
# Description :
# https://github.com/OBKoro1
###
2020-10-27 17:04:50 +08:00
# 打包
# vsce package
2019-12-26 20:56:51 +08:00
2020-10-27 17:04:50 +08:00
vsce package --yarn # 解决下文报错
2019-12-26 20:56:51 +08:00
2020-10-27 17:04:50 +08:00
# 发布地址: https://marketplace.visualstudio.com/manage/publishers/obkoro1
# 打包报错:
# Error: Command failed: npm list --production --parseable --depth=99999
# npm ERR! missing: hoek@6.0.4, required by korofileheader@3.4.0
# 使用vsce package --yarn
# vscodium发布插件
# npx ovsx publish file -p token
# TODO: 修改版本
# npx ovsx publish /Users/koro/work/web_my/koro1FileHeader/korofileheader-4.7.8.vsix -p 765ed6f2-2c30-4466-9cb5-223e323b650a
2020-11-18 16:41:00 +08:00
# tag
# https://git-scm.com/book/zh/v2/Git-%E5%9F%BA%E7%A1%80-%E6%89%93%E6%A0%87%E7%AD%BE
# git tag -a 'v0.0.12' -m 'tag信息'
# git push origin --tags
# git tag
# git tag -l | xargs git tag -d #删除所有本地分支
# git fetch origin --prune #从远程拉取所有信息