build(main): 🔖 Release urban-twilight-teal-theme 0.1.8 #6
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
name: Publish Extension to VSCode Marketplace | |
on: | |
pull_request: | |
types: [closed] | |
branches: | |
- main | |
jobs: | |
publish: | |
if: | | |
github.event.pull_request.merged == true && | |
startsWith(github.event.pull_request.title, 'build') && | |
contains(github.event.pull_request.title, '🔖 Release') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
cache: "npm" | |
- name: Install dependencies | |
run: npm ci | |
- name: Install vsce | |
run: npm install -g @vscode/vsce | |
- name: Publish Extension to VSCode Marketplace | |
run: vsce publish -p ${VSCE_PAT} | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
- name: Install ovsx | |
run: npm install -g ovsx | |
- name: Publish to Open VSX Registry | |
run: ovsx publish -p ${OVSX_PAT} | |
env: | |
OVSX_PAT: ${{ secrets.OVSX_PAT }} |