forked from evanp/inference-coop-copilot
Compare commits
1
Commits
0d30fd1eb5
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
28d736f627 |
No files matched your search
@@ -0,0 +1,42 @@
|
||||
name: Publish to VS Marketplace
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '24'
|
||||
|
||||
- name: Verify tag matches package.json version
|
||||
env:
|
||||
TAG_REF: ${{ gitea.ref_name }}
|
||||
run: |
|
||||
tag="${TAG_REF#v}"
|
||||
pkg="$(node -p "require('./package.json').version")"
|
||||
echo "Tag version: $tag"
|
||||
echo "package.json version: $pkg"
|
||||
if [ "$tag" != "$pkg" ]; then
|
||||
echo "::error::Tag v$tag does not match package.json version $pkg"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Type-check, lint, and bundle
|
||||
run: npm run package
|
||||
|
||||
- name: Publish to VS Marketplace
|
||||
env:
|
||||
VSCE_PAT: ${{ secrets.VSCE_PAT }}
|
||||
run: npx vsce publish -p "$VSCE_PAT" --skip-duplicate
|
||||
@@ -1,5 +1,6 @@
|
||||
.vscode/**
|
||||
.vscode-test/**
|
||||
.gitea/**
|
||||
out/**
|
||||
node_modules/**
|
||||
src/**
|
||||
|
||||
@@ -8,6 +8,23 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||
and this project adheres to
|
||||
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
|
||||
- Gitea Actions workflow (`.gitea/workflows/publish.yaml`) that publishes to
|
||||
the VS Code Marketplace when a `vX.Y.Z` tag is pushed. It fails if the tag
|
||||
disagrees with the `version` in package.json, runs the existing
|
||||
`npm run package` gate (type-check, lint, production bundle) before
|
||||
publishing, and passes `--skip-duplicate` so a re-run is a no-op rather
|
||||
than a failure. Requires repository Actions to be enabled and a
|
||||
`VSCE_PAT` repository secret.
|
||||
|
||||
### Fixed
|
||||
|
||||
- Excluded `.gitea/**` from the packaged extension in `.vscodeignore`, so
|
||||
workflow files are no longer bundled into the VSIX.
|
||||
|
||||
## [0.4.1] - 2026-11-08
|
||||
|
||||
### Fixed
|
||||
|
||||
Reference in new issue
Block a user