Skip to content

feat: release 0.0.4

feat: release 0.0.4 #4

Workflow file for this run

name: Publish to VSCode Marketplace
on:
push:
tags:
- "v*"
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: Check if versions match
run: |
TAG=${GITHUB_REF#refs/tags/v}
PKG_VERSION=${{ steps.package-version.outputs.current-version }}
if [ "$TAG" != "$PKG_VERSION" ]; then
echo "Tag version ($TAG) does not match package.json version ($PKG_VERSION)"
exit 1
fi
- name: Install dependencies
run: pnpm install
- name: Publish to VSCode Marketplace
run: pnpm publish:vscode
env:
VSCE_PAT: ${{ secrets.VSCODE_TOKEN }}