Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
pull_request:
push:
branches:
- master
- main
jobs:
pre-commit:
runs-on: ubuntu-latest
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release

# Publishes the extension to the VS Code Marketplace when a GitHub Release is
# published. The release tag should match the `version` in package.json.
#
# Requires a repository secret `VSCE_PAT`: an Azure DevOps Personal Access Token
# for the `helly25` publisher with the "Marketplace > Manage" scope.
on:
release:
types: [published]

permissions:
contents: write

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- name: Package
run: npm run package -- --out helly25iwyu.vsix
- name: Publish to VS Code Marketplace
run: npx @vscode/vsce publish --packagePath helly25iwyu.vsix
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
- name: Attach VSIX to the GitHub Release
run: gh release upload "${{ github.event.release.tag_name }}" helly25iwyu.vsix --clobber
env:
GITHUB_TOKEN: ${{ github.token }}
8 changes: 8 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
.vscode/**
.vscode-test/**
.vscode-test.*
src/**
out/test/**
.github/**
.trunk/**
.gitignore
.yarnrc
.pre-commit-config.yaml
eslint.config.js
package-lock.json
vsc-extension-quickstart.md
**/tsconfig.json
**/.eslintrc.json
**/*.map
**/*.ts
**/.DS_Store
Loading
Loading