File tree Expand file tree Collapse file tree 3 files changed +17
-9
lines changed
Expand file tree Collapse file tree 3 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -3,46 +3,47 @@ name: CI/CD Pipeline
33on :
44 push :
55 branches :
6- - production-release
6+ - main
77 pull_request :
88 branches :
9- - production-release
9+ - main
1010
1111jobs :
1212 build :
1313 runs-on : ubuntu-latest
1414
1515 steps :
1616 - name : Checkout code
17- uses : actions/checkout@v2
17+ uses : actions/checkout@v3
1818
1919 - name : Set up Node.js
20- uses : actions/setup-node@v2
20+ uses : actions/setup-node@v3
2121 with :
22- node-version : ' 14 '
22+ node-version : ' 20 '
2323
2424 - name : Install dependencies
2525 run : npm install
2626
2727 - name : Build the extension
28- run : npm run build
28+ run : npm run compile
2929
3030 - name : Package the extension
3131 run : npm run package
3232
3333 deploy :
3434 runs-on : ubuntu-latest
3535 needs : build
36+ if : ${{ github.event_name == 'push' }}
3637
3738 steps :
3839 - name : Checkout code
3940 uses : actions/checkout@v2
4041
4142 - name : Upload VSIX file
42- uses : actions/upload-artifact@v2
43+ uses : actions/upload-artifact@v3
4344 with :
4445 name : vscode-extension
45- path : path/to/your/package .vsix
46+ path : ' **/* .vsix'
4647
4748 - name : Deploy to Marketplace
4849 run : |
Original file line number Diff line number Diff line change 1+ ** /* .ts
2+ ** /tsconfig.json
3+ ! file.ts
4+ .gitignore
5+ .vscode /**
6+ .github /**
7+ node_modules /**
Original file line number Diff line number Diff line change 33 "displayName" : " Prompt Vault extension" ,
44 "description" : " Sync GitHub Copilot prompts, chatmodes and instructions from git repositories" ,
55 "version" : " 1.2.0" ,
6- "publisher" : " logient-nventive " ,
6+ "publisher" : " logientnventive " ,
77 "repository" : {
88 "type" : " git" ,
99 "url" : " https://github.com/nventive/PromptVault.git" ,
You can’t perform that action at this time.
0 commit comments