chore(deps): update dependency @commitlint/config-conventional to v17.8.1 #4021
This file contains 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
name: Build and Publish | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'v*' | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Install Node.js | |
uses: actions/[email protected] | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
cache-dependency-path: | | |
package-lock.json | |
test/project/v6/package-lock.json | |
test/project/v7/package-lock.json | |
test/project/v8/package-lock.json | |
- name: Install Node dependencies | |
run: npm ci | |
- name: Package VSIX | |
run: npm run package | |
- name: Archive VSIX | |
uses: actions/upload-artifact@v3 | |
with: | |
name: vsix | |
path: '*.vsix' | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Install Node.js | |
uses: actions/[email protected] | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
cache-dependency-path: | | |
package-lock.json | |
test/project/v6/package-lock.json | |
test/project/v7/package-lock.json | |
test/project/v8/package-lock.json | |
- name: Install Node dependencies | |
id: install | |
run: npm ci | |
- name: Test | |
if: (success() || failure()) && steps.install.conclusion == 'success' | |
run: npm run test -- --coverage | |
- name: Typecheck | |
if: (success() || failure()) && steps.install.conclusion == 'success' | |
run: npm run typecheck | |
- name: Lint | |
if: (success() || failure()) && steps.install.conclusion == 'success' | |
run: npm run lint | |
- name: Format | |
if: (success() || failure()) && steps.install.conclusion == 'success' | |
run: npm run format | |
publish: | |
runs-on: ubuntu-latest | |
needs: [build, test] | |
if: success() && startsWith(github.ref, 'refs/tags/') | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Install Node.js | |
uses: actions/[email protected] | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
cache-dependency-path: | | |
package-lock.json | |
test/project/v6/package-lock.json | |
test/project/v7/package-lock.json | |
test/project/v8/package-lock.json | |
- name: Install Node dependencies | |
run: npm ci | |
- uses: actions/[email protected] | |
- name: Publish to marketplace | |
run: npm run deploy | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
- name: Read changelog | |
uses: yashanand1910/[email protected] | |
id: changelog | |
with: | |
version: ${{ github.ref }} | |
- name: Create release | |
uses: svenstaro/[email protected] | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: 'vsix/*.vsix' | |
tag: ${{ github.ref }} | |
overwrite: true | |
file_glob: true | |
body: ${{ steps.changelog.outputs.release_notes }} |