Skip to content

version, changelog #226

version, changelog

version, changelog #226

Workflow file for this run

name: CI
on:
push:
pull_request:
release:
types:
- created
jobs:
all:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 22
- run: npm ci
working-directory: vscode
- name: Run js unit tests
working-directory: vscode
run: npm test
# This isn't strictly necessary, but gives better
# build error output than npm run e2e:setup
- name: Run webpack
working-directory: vscode
run: npm run webpack
- name: build
if: github.ref == 'refs/heads/master' && matrix.os == 'ubuntu-latest'
working-directory: vscode
run: |
npm ci
npm run build_vsix
- name: upload
if: github.ref == 'refs/heads/master' && matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v4
with:
name: note-searcher.vsix
path: vscode/*.vsix
- name: publish
if: success() && startsWith( github.ref, 'refs/tags/releases/') && matrix.os == 'ubuntu-latest'
working-directory: vscode
run: npm run publish
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}