fix: improve readability of text selections #21
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: "Publish: Visual Studio Marketplace" | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'package.json' | |
- '.gitignore' | |
- '.vscodeignore' | |
- '.github/**' | |
- '.vscode/**' | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.PUSH_PAT }} | |
- name: Set git config | |
run: | | |
git config user.name "${{ github.actor }}" | |
git config user.email "${{ github.actor }}@users.noreply.github.com" | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm install | |
- name: Install vsce | |
run: npm install -g @vscode/vsce | |
- name: Publish | |
if: success() | |
run: "vsce publish patch -p ${{ secrets.VSCE_PAT }} -m 'build: version bump to %s'" | |
- name: Git Push | |
run: git push && git push --tags |