File tree Expand file tree Collapse file tree 5 files changed +20
-3
lines changed Expand file tree Collapse file tree 5 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 1+ v0.7.1
Original file line number Diff line number Diff line change 33puts "~~> Building package.json..."
44
55require 'json'
6- package = JSON . parse File . read ( "#{ __dir__ } /../package.src.json" )
6+
7+ package = {
8+ version : File . read ( "#{ __dir__ } /../VERSION" ) . strip . delete_prefix ( 'v' )
9+ }
10+ package . merge! JSON . parse File . read ( "#{ __dir__ } /../package.src.json" )
11+
712
813class Hash
914 def dig! ( *keys )
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33set -e
4+
5+ version=" $1 "
6+ if [ -z " $version " ]; then
7+ echo " Usage: bin/release <version>"
8+ echo " Example: bin/release v1.2.3"
9+ exit 1
10+ fi
11+
12+ echo " $version " > VERSION
13+
414yarn install
515bin/build
16+ git add VERSION package.json
17+ git commit -m " Release $version "
618git diff --exit-code
719git tag -m " " " v$( cat package.json | ruby -rjson -e ' puts JSON[$<.read][%{version}]' ) "
820git push --tags
Original file line number Diff line number Diff line change 11{
2+ "version" : " 0.7.2" ,
23 "name" : " vscode-textmate" ,
34 "displayName" : " TextMate (keymap and features, 🚧 work in progress! 🚧)" ,
45 "description" : " TextMate features and keybindings for Visual Studio Code" ,
89 },
910 "icon" : " icon.png" ,
1011 "publisher" : " elia" ,
11- "version" : " 0.7.1" ,
1212 "engines" : {
1313 "vscode" : " ^1.77.0"
1414 },
Original file line number Diff line number Diff line change 88 },
99 "icon" : " icon.png" ,
1010 "publisher" : " elia" ,
11- "version" : " 0.7.1" ,
1211 "engines" : {
1312 "vscode" : " ^1.77.0"
1413 },
You can’t perform that action at this time.
0 commit comments