Skip to content

Enhance SQL Injection Prevention and Version Bump #7

Enhance SQL Injection Prevention and Version Bump

Enhance SQL Injection Prevention and Version Bump #7

Workflow file for this run

# GitHub Actions workflow to automatically create a release with .vsix asset
# Triggered when a version tag (v*) is pushed
name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build and package extension
run: npm run package
- name: Extract version from tag
id: version
run: echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
name: v${{ steps.version.outputs.version }}
body: |
## SQLite Explorer v${{ steps.version.outputs.version }}
See [CHANGELOG.md](https://github.com/${{ github.repository }}/blob/main/CHANGELOG.md) for details.
### Installation
Download the `.vsix` file and install it in VS Code:
- Open VS Code
- Press `Ctrl+Shift+P` (or `Cmd+Shift+P` on Mac)
- Type "Install from VSIX"
- Select the downloaded file
files: sqlite-explorer-${{ steps.version.outputs.version }}.vsix
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}