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 3
3
puts "~~> Building package.json..."
4
4
5
5
require '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
+
7
12
8
13
class Hash
9
14
def dig! ( *keys )
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
set -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
+
4
14
yarn install
5
15
bin/build
16
+ git add VERSION package.json
17
+ git commit -m " Release $version "
6
18
git diff --exit-code
7
19
git tag -m " " " v$( cat package.json | ruby -rjson -e ' puts JSON[$<.read][%{version}]' ) "
8
20
git push --tags
Original file line number Diff line number Diff line change 1
1
{
2
+ "version" : " 0.7.2" ,
2
3
"name" : " vscode-textmate" ,
3
4
"displayName" : " TextMate (keymap and features, 🚧 work in progress! 🚧)" ,
4
5
"description" : " TextMate features and keybindings for Visual Studio Code" ,
8
9
},
9
10
"icon" : " icon.png" ,
10
11
"publisher" : " elia" ,
11
- "version" : " 0.7.1" ,
12
12
"engines" : {
13
13
"vscode" : " ^1.77.0"
14
14
},
Original file line number Diff line number Diff line change 8
8
},
9
9
"icon" : " icon.png" ,
10
10
"publisher" : " elia" ,
11
- "version" : " 0.7.1" ,
12
11
"engines" : {
13
12
"vscode" : " ^1.77.0"
14
13
},
You can’t perform that action at this time.
0 commit comments