Skip to content

CI/CD for VSCode Extension #2

CI/CD for VSCode Extension

CI/CD for VSCode Extension #2

Workflow file for this run

name: CI/CD for VSCode Extension
on:
push:
tags:
- "*"
jobs:
git_check:
uses: ./.github/workflows/git-check.yaml

Check failure on line 10 in .github/workflows/cicd.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/cicd.yaml

Invalid workflow file

error parsing called workflow ".github/workflows/cicd.yaml" -> "./.github/workflows/git-check.yaml" : failed to fetch workflow: workflow was not found.
publish-extension:
needs: git_check
name: Publish VSCode Extension
runs-on: ubuntu-latest
if: github.ref_type == 'tag' && github.ref == 'refs/tags/*' && github.ref == 'refs/heads/main'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install dependencies
run: npm install
- name: Install VSCE (CLI for managing VS Code extensions)
run: npm install -g @vscode/vsce
- name: Pre-Bump Hook (Cargo Set Version)
run: cargo set-version {{version}}
- name: Package and Publish Extension
run: |
vsce package
vsce publish
env:
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}