Skip to content

build: cleanup vscode metadata #10

build: cleanup vscode metadata

build: cleanup vscode metadata #10

Workflow file for this run

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
- name: Install build deps
run: npm install --ignore-scripts=true
- name: Install runtime deps
run: npm install
env:
NODE_ENV: production # this will skip installation of dev deps
- 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 }}