Skip to content

updating to allow older vscode. Modified the workflow #19

updating to allow older vscode. Modified the workflow

updating to allow older vscode. Modified the workflow #19

name: Tests Status
on:
push:
branches: [ master ]
tags:
- 'v*'
pull_request:
branches: [ master ]
jobs:
tests:
name: Unit Tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Run unit tests
run: npm test
release:
name: Create Github Release + Publish to Marketplace
needs: tests
if: startswith(github.ref, 'refs/tags/v') && github.actor == 'chrisdbeard'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
- run: npm ci
- name: Github Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
token: ${{ secrets.GH_RELEASE_PAT }}
name: ${{ github.ref_name }}
body: |
# Summary
See the [CHANGELOG.md](https://github.com/${{ github.repository }}/blob/master/CHANGELOG.md)
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}