Skip to content

feat: setup ci

feat: setup ci #2

Workflow file for this run

name: Publish to VSCode Marketplace
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 8
- name: Get version from package.json
id: package-version
uses: martinbeentjes/[email protected]
- name: Create Git tag
run: |
git config --local user.email "[email protected]"
git config --local user.name "bot"
git tag -a v${{ steps.package-version.outputs.current-version}} -m "Release v${{ steps.package-version.outputs.current-version}}"
git push origin v${{ steps.package-version.outputs.current-version}}
- name: Install dependencies
run: pnpm install
- name: Publish to VSCode Marketplace
run: pnpm publish
env:
VSCE_PAT: ${{ secrets.VSCODE_TOKEN }}