Skip to content

Commit

Permalink
ci: 👷 update CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
elvis-ndubuisi committed Sep 12, 2023
1 parent 4190b1c commit b037c3a
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,25 @@ on:
- created

jobs:
publish:
runs-on: ubuntu-latest

build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 14

- name: Install dependencies
run: npm install

- name: Publish extension
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.os == 'ubuntu-latest'
node-version: 16.x
- run: npm install
- run: xvfb-run -a npm test
if: runner.os == 'Linux'
- run: npm test
if: runner.os != 'Linux'
- name: Publish
if: success() && startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest'
run: yarn run deploy
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}

0 comments on commit b037c3a

Please sign in to comment.