Bump serialize-javascript and mocha #30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |