Skip to content

chore(deps-dev): bump @types/node from 18.19.128 to 24.6.0 #6

chore(deps-dev): bump @types/node from 18.19.128 to 24.6.0

chore(deps-dev): bump @types/node from 18.19.128 to 24.6.0 #6

Workflow file for this run

name: Release

Check failure on line 1 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

(Line: 51, Col: 11): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.VSCE_PAT != '', (Line: 57, Col: 11): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.OVSX_PAT != ''
on:
push:
tags:
- 'v*.*.*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run tests
uses: coactions/setup-xvfb@v1
with:
run: npm test
- name: Package extension
run: |
npm install -g @vscode/vsce
vsce package
- name: Get version from tag
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: '*.vsix'
generate_release_notes: true
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to VS Code Marketplace
run: vsce publish --pat ${{ secrets.VSCE_PAT }}
if: ${{ secrets.VSCE_PAT != '' }}
- name: Publish to Open VSX Registry
run: |
npm install -g ovsx
ovsx publish *.vsix --pat ${{ secrets.OVSX_PAT }}
if: ${{ secrets.OVSX_PAT != '' }}