v0.1.12 #18
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 to Open VSX Registry --pre-release | |
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '-') | |
run: ./node_modules/.bin/ovsx publish --pre-release -p "$OPEN_VSX_TOKEN" | |
env: | |
OPEN_VSX_TOKEN: ${{ secrets.OPEN_VSX_TOKEN }} | |
- name: Publish to Open VSX Registry | |
if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-') | |
run: ./node_modules/.bin/ovsx publish -p "$OPEN_VSX_TOKEN" | |
env: | |
OPEN_VSX_TOKEN: ${{ secrets.OPEN_VSX_TOKEN }} | |
- name: Publish to Azure Marketplace --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 to Azure Marketplace | |
if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-') | |
run: ./node_modules/.bin/vsce publish | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} |