Skip to content

Release

Release #17

Workflow file for this run

name: Release
on:
workflow_dispatch
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: npm
cache-dependency-path: package-lock.json
- name: Install dependencies
run: npm ci
- name: Generate Langium files
run: npm run langium:generate
- name: Compile TypeScript
run: npm run build
- name: Test with Vitest
run: npm run test
- name: Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
VSCE_PAT: ${{ secrets.VSCE_PAT }}