File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 71
71
with :
72
72
node-version : 12.x
73
73
74
- - run : echo "::set-env name=TAG::$(date --iso)"
74
+ - run : echo "::set-env name=TAG::$(date --iso --utc )"
75
75
if : github.event_name == 'push'
76
76
- run : echo "::set-env name=TAG::nightly"
77
77
if : github.event_name == 'schedule'
@@ -108,4 +108,4 @@ jobs:
108
108
if : github.event_name == 'push'
109
109
working-directory : ./editors/code
110
110
# token from https://dev.azure.com/rust-analyzer/
111
- run : npx vsce publish 0.1.$(date +%Y%m%d) --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer.vsix
111
+ run : npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer.vsix
Original file line number Diff line number Diff line change @@ -27,15 +27,21 @@ fn dist_client(nightly: bool) -> Result<()> {
27
27
let _restore =
28
28
Restore { path : package_json_path. clone ( ) , contents : original_package_json. clone ( ) } ;
29
29
30
- let mut package_json = original_package_json. replace ( r#""enableProposedApi": true,"# , r#""# ) ;
30
+ let date = run ! ( "date --utc +%Y%m%d" ) ?;
31
+ let version_suffix = if nightly { "-nightly" } else { "" } ;
32
+
33
+ let mut package_json = original_package_json. replace (
34
+ r#""version": "0.2.20200211-dev""# ,
35
+ & format ! ( r#""version": "0.1.{}{}""# , date, version_suffix) ,
36
+ ) ;
31
37
32
38
if nightly {
33
39
package_json = package_json. replace (
34
40
r#""displayName": "rust-analyzer""# ,
35
41
r#""displayName": "rust-analyzer nightly""# ,
36
42
) ;
37
43
} else {
38
- package_json = original_package_json . replace ( r#""enableProposedApi": true,"# , r#""# ) ;
44
+ package_json = package_json . replace ( r#""enableProposedApi": true,"# , r#""# ) ;
39
45
}
40
46
fs2:: write ( package_json_path, package_json) ?;
41
47
You can’t perform that action at this time.
0 commit comments