Skip to content

Commit

Permalink
feat(ci/cd): add deploy and update code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
MaloPolese committed Nov 1, 2022
1 parent 6498d51 commit a7bc2ce
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,26 @@ name: CI

on:
push:
branches: [ main, develop ]
branches: [ main ]

pull_request:
types: [opened, reopened, synchronize]

jobs:
lint:
name: Quality
name: Build and Code quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: npm ci
- run: npm run fix

build:
name: Build
needs: lint
- run: npm run pretest

audit:
name: Audit packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: npm ci
- run: npm run compile
- uses: actions/checkout@v3
- run: npm audit --audit-level moderate
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish VS code Extension

on:
push:
tags:
- "*"

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
- run: npm ci

- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }}

0 comments on commit a7bc2ce

Please sign in to comment.