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+ # File: .github/rulesets/main-branch-rules.yml
2+ name : Main Branch Protection
3+ target : branch
4+ enforcement : active
5+ conditions :
6+ - ref_name :
7+ include :
8+ - main
9+ rules :
10+ - type : deletion
11+ parameters : {}
12+ - type : non_fast_forward
13+ parameters : {}
14+ - type : pull_request
15+ parameters :
16+ required_approving_review_count : 1
17+ require_code_owner_reviews : true
18+ required_review_thread_resolution : true
19+ - type : required_status_checks
20+ parameters :
21+ required_status_checks :
22+ - context : " Test Extension"
23+ - context : " Publish Extension"
24+ strict_required_status_checks_policy : true
Original file line number Diff line number Diff line change 1+ name : Publish Extension
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ workflow_dispatch :
7+
8+ jobs :
9+ publish :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v4
15+ with :
16+ fetch-depth : 0
17+
18+ - name : Setup Node.js
19+ uses : actions/setup-node@v4
20+ with :
21+ node-version : ' 18'
22+ cache : ' npm'
23+
24+ - name : Install dependencies
25+ run : npm ci
26+
27+ - name : Compile TypeScript
28+ run : npm run compile
29+
30+ - name : Run tests
31+ run : npm test
32+
33+ - name : Install VS Code Extension Publisher (vsce)
34+ run : npm install -g @vscode/vsce
35+
36+ - name : Publish to Visual Studio Code Marketplace
37+ run : |
38+ vsce publish -p ${{ secrets.VSCE_PAT }}
39+ env :
40+ VSCE_PAT : ${{ secrets.VSCE_PAT }}
Original file line number Diff line number Diff line change 1+ name : Test Extension
2+
3+ on :
4+ push :
5+ branches : [ main, develop ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout code
15+ uses : actions/checkout@v4
16+
17+ - name : Setup Node.js
18+ uses : actions/setup-node@v4
19+ with :
20+ node-version : ' 18'
21+ cache : ' npm'
22+
23+ - name : Install dependencies
24+ run : npm ci
25+
26+ - name : Compile TypeScript
27+ run : npm run compile
28+
29+ - name : Run linting
30+ run : npm run lint
31+
32+ - name : Run tests
33+ run : npm test
Original file line number Diff line number Diff line change 11out /*
22out /test /*
33evolog-ai- * .vsix
4+ changelog-generator.ps1
You can’t perform that action at this time.
0 commit comments