File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Publish extension
2+ on :
3+ push :
4+ branches :
5+ - main
6+ release :
7+ types :
8+ - created
9+
10+ jobs :
11+ build :
12+ strategy :
13+ matrix :
14+ os : [macos-latest, ubuntu-latest, windows-latest]
15+ runs-on : ${{ matrix.os }}
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v2
19+ - name : Install Node.js
20+ uses : actions/setup-node@v1
21+ with :
22+ node-version : 10.x
23+ - run : npm install
24+ - run : xvfb-run -a npm test
25+ if : runner.os == 'Linux'
26+ - run : npm test
27+ if : runner.os != 'Linux'
28+ - name : Publish
29+ if : success() && startsWith( github.ref, 'refs/tags/releases/') && matrix.os == 'ubuntu-latest'
30+ run : npm run deploy
31+ env :
32+ VSCE_PAT : ${{ secrets.VSCE_PAT }}
33+ SEGMENT_KEY : ${{ secrets.SEGMENT_KEY }}
34+
Original file line number Diff line number Diff line change 7070 "watch" : " tsc -watch -p ./" ,
7171 "pretest" : " yarn run compile && yarn run lint" ,
7272 "lint" : " eslint src --ext ts" ,
73- "test" : " node ./out/test/runTest.js"
73+ "test" : " node ./out/test/runTest.js" ,
74+ "deploy" : " vsce publish --yarn"
7475 },
7576 "devDependencies" : {
7677 "@types/glob" : " ^7.1.3" ,
8384 "glob" : " ^7.1.6" ,
8485 "mocha" : " ^8.2.1" ,
8586 "typescript" : " ^4.1.3" ,
87+ "vsce" : " ^2.7.0" ,
8688 "vscode-test" : " ^1.5.0"
8789 },
8890 "dependencies" : {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import * as FileUtils from './file-utils';
55import * as Snippets from "./snippets" ;
66import { kebabCasify , stringToUintArray } from './utils/string-manipulation' ;
77
8- var analytics = new Analytics ( 'KEY_HERE' ) ;
8+ var analytics = new Analytics ( process . env . SEGMENT_KEY || "" ) ;
99
1010async function onCreateDirectories ( selectedFolder : vscode . Uri ) {
1111 analytics . track ( {
You can’t perform that action at this time.
0 commit comments