Update publish-vscode-extension.yml #3
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
name: Build and Publish VSCode Extension | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Install dependencies | |
run: npm install | |
- name: Bump version | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "anovoa" | |
npm version patch -m "Bump version to %s [skip ci]" | |
git push --follow-tags | |
env: | |
GITHUB_TOKEN: ${{secrets.GHTOKENWORKFLOW}} | |
- name: Lint code | |
run: npm run lint | |
- name: Compile code | |
run: npm run compile | |
- name: Install vsce | |
run: npm install -g @vscode/vsce | |
- name: Package extension | |
run: vsce package | |
- name: Upload VSIX artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: vscode-extension.vsix | |
path: '*.vsix' |