Skip to content

Commit

Permalink
feat: add deployment to ci pipeline
Browse files Browse the repository at this point in the history
danish17 committed Dec 28, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 25ad12d commit 74845b0
Showing 3 changed files with 2,133 additions and 65 deletions.
42 changes: 31 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -2,6 +2,9 @@ on:
push:
branches:
- main
release:
types:
- created

jobs:
build:
@@ -10,14 +13,31 @@ jobs:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
- run: npm install
- run: xvfb-run -a npm test
if: runner.os == 'Linux'
- run: npm test
if: runner.os != 'Linux'
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
- run: npm install
- run: xvfb-run -a npm test
if: runner.os == 'Linux'
- run: npm test
if: runner.os != 'Linux'

publish:
needs: build
runs-on: ubuntu-latest
if: success() && startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
- run: npm install
- name: Publish to Marketplace
run: npm run deploy
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
2,142 changes: 2,094 additions & 48 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -55,6 +55,7 @@
},
"scripts": {
"vscode:prepublish": "npm run package",
"deploy": "vsce publish --yarn",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
@@ -65,17 +66,18 @@
"test": "vscode-test --timeout=10000"
},
"devDependencies": {
"@types/vscode": "^1.96.0",
"@types/mocha": "^10.0.10",
"@types/node": "20.x",
"@types/vscode": "^1.96.0",
"@typescript-eslint/eslint-plugin": "^8.17.0",
"@typescript-eslint/parser": "^8.17.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"@vscode/vsce": "^3.2.1",
"eslint": "^9.16.0",
"typescript": "^5.7.2",
"ts-loader": "^9.5.1",
"typescript": "^5.7.2",
"webpack": "^5.95.0",
"webpack-cli": "^5.1.4",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1"
"webpack-cli": "^5.1.4"
}
}
}

0 comments on commit 74845b0

Please sign in to comment.