build: cleanup vscode metadata #13
Workflow file for this run
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
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
publish-vsce: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
- run: npm install | |
- name: replace README.md | |
run: | | |
rm README.md | |
mv readmes/vscode.md README.md | |
- name: Publish vsce --pre-release | |
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '-') | |
run: ./node_modules/.bin/vsce publish --pre-release | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
- name: Publish vsce | |
if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-') | |
run: ./node_modules/.bin/vsce publish | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} |