forked from evanp/inference-coop-copilot
Compare commits
5
Commits
a252f90b62
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
28d736f627 | ||
|
|
0d30fd1eb5 | ||
|
|
8265975098 | ||
|
|
5aaf3f4f97 | ||
|
|
90a51287b4 |
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/**
|
||||
|
||||
+30
-1
@@ -12,6 +12,33 @@ and this project adheres to
|
||||
|
||||
### 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
|
||||
|
||||
- Moved the Marketplace `baseContentUrl`/`baseImagesUrl` settings into a
|
||||
`vsce` block in package.json. vsce only reads them from there (or from
|
||||
CLI flags) for non-GitHub/GitLab repositories, so packaging previously
|
||||
failed with "Couldn't detect the repository". Verified the packaged
|
||||
README now links the icon, LICENSE, and NOTICE with working Gitea URLs.
|
||||
|
||||
## [0.4.0] - 2026-11-08
|
||||
|
||||
### Added
|
||||
|
||||
- Set `baseContentUrl` in package.json to the Gitea raw URL, so LICENSE and
|
||||
NOTICE links in the README resolve correctly on the Marketplace.
|
||||
- Added an npm `publish` script running `vsce publish`, with `@vscode/vsce`
|
||||
@@ -116,7 +143,9 @@ First release usable for chat.
|
||||
|
||||
Initial development release. Not functional for chat.
|
||||
|
||||
[Unreleased]: https://git.inference.coop/code/inference-coop-copilot/compare/v0.3.0...HEAD
|
||||
[Unreleased]: https://git.inference.coop/code/inference-coop-copilot/compare/v0.4.1...HEAD
|
||||
[0.4.1]: https://git.inference.coop/code/inference-coop-copilot/compare/v0.4.0...v0.4.1
|
||||
[0.4.0]: https://git.inference.coop/code/inference-coop-copilot/compare/v0.3.0...v0.4.0
|
||||
[0.3.0]: https://git.inference.coop/code/inference-coop-copilot/compare/v0.2.2...v0.3.0
|
||||
[0.2.2]: https://git.inference.coop/code/inference-coop-copilot/compare/v0.2.1...v0.2.2
|
||||
[0.2.1]: https://git.inference.coop/code/inference-coop-copilot/compare/v0.2.0...v0.2.1
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "inference-coop-copilot",
|
||||
"version": "0.3.0",
|
||||
"version": "0.4.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "inference-coop-copilot",
|
||||
"version": "0.3.0",
|
||||
"version": "0.4.1",
|
||||
"license": "Apache-2.0",
|
||||
"devDependencies": {
|
||||
"@types/mocha": "^10.0.10",
|
||||
|
||||
+6
-3
@@ -2,7 +2,7 @@
|
||||
"name": "inference-coop-copilot",
|
||||
"displayName": "Inference Coop for Copilot Chat",
|
||||
"description": "Inference.coop models for Copilot Chat",
|
||||
"version": "0.3.0",
|
||||
"version": "0.4.1",
|
||||
"icon": "images/icon.png",
|
||||
"engines": {
|
||||
"vscode": "^1.145.0"
|
||||
@@ -10,8 +10,11 @@
|
||||
"publisher": "evanp",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://git.inference.coop/code/inference-coop-copilot.git",
|
||||
"baseContentUrl": "https://git.inference.coop/code/inference-coop-copilot/raw/branch/main"
|
||||
"url": "https://git.inference.coop/code/inference-coop-copilot.git"
|
||||
},
|
||||
"vsce": {
|
||||
"baseContentUrl": "https://git.inference.coop/code/inference-coop-copilot/raw/branch/main",
|
||||
"baseImagesUrl": "https://git.inference.coop/code/inference-coop-copilot/raw/branch/main"
|
||||
},
|
||||
"license": "Apache-2.0",
|
||||
"categories": [
|
||||
|
||||
Reference in new issue
Block a user