Skip to content

Bump serialize-javascript and mocha #30

Bump serialize-javascript and mocha

Bump serialize-javascript and mocha #30

Workflow file for this run

on:
push:
branches:
- main
paths-ignore: # dont run when changes made to these folders
- ".vscode/**"
- CHANGELOG.md
tags:
- v*.*.*
jobs:
CI:
name: CI
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: "18"
- name: clean install dependencies
run: npm ci
- name: Run tests (Linux)
run: xvfb-run -a npm test
- name: Publish to VSCode marketplace
if: success() && startsWith(github.ref, 'refs/tags/')
run: npx vsce publish --no-git-tag-version ${TAG_NAME#v}
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
TAG_NAME: ${{ github.ref_name }}
- name: GitHub Release
if: success() && startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
body_path: CHANGELOG.md
token: ${{ secrets.GITHUB_TOKEN }}