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
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions src/package-vsix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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);

Expand Down
Loading