diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ac89c30..8e7b1fe 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,6 +28,9 @@ jobs: - name: Rename package for extension publishing run: jq '.name = "pierre-theme"' package.json > tmp.json && mv tmp.json package.json + - name: Swap in VSCE README + run: cp README.package.md README.md + - name: Publish to VS Marketplace env: VSCE_PAT: ${{ secrets.VSCE_PAT }} diff --git a/README.vsce.md b/README.package.md similarity index 100% rename from README.vsce.md rename to README.package.md diff --git a/package-lock.json b/package-lock.json index e5fd1a0..be0fd80 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@pierre/theme", - "version": "1.0.0", + "version": "1.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@pierre/theme", - "version": "1.0.0", + "version": "1.0.2", "license": "MIT", "devDependencies": { "@vscode/vsce": "^3.2.2", diff --git a/package.json b/package.json index 8b57e2a..d044a7b 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@pierre/theme", "displayName": "Pierre Theme", "description": "Pierre theme for Shiki, VS Code, and more", - "version": "1.0.0", + "version": "1.0.2", "publisher": "pierrecomputer", "icon": "icon.png", "galleryBanner": { diff --git a/src/package-vsix.ts b/src/package-vsix.ts index 913b629..8c25dcc 100644 --- a/src/package-vsix.ts +++ b/src/package-vsix.ts @@ -5,7 +5,7 @@ import { join } from "path"; const root = join(__dirname, ".."); const pkgPath = join(root, "package.json"); const readmePath = join(root, "README.md"); -const vsceReadmePath = join(root, "README.vsce.md"); +const vsceReadmePath = join(root, "README.package.md"); const readmeBackupPath = join(root, "README.md.bak"); const original = readFileSync(pkgPath, "utf-8"); @@ -22,7 +22,7 @@ const hadReadme = existsSync(readmePath); try { writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + "\n"); - // Swap in the VSCE-specific README + // Swap in the package README if (hadReadme) renameSync(readmePath, readmeBackupPath); renameSync(vsceReadmePath, readmePath);