diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 83fa69a..a15510a 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -42,6 +42,9 @@ jobs: - name: install vsce run: pnpm add -g @vscode/vsce + - name: build + run: pnpm run build + - name: publish run: | pnpm run vsce:package diff --git a/CONTRIBUTION.md b/CONTRIBUTION.md index 579f800..eaa62e1 100644 --- a/CONTRIBUTION.md +++ b/CONTRIBUTION.md @@ -12,8 +12,18 @@ Open `DEBUG CONSOLE` (Cmd + Shift + y) to see logs. After modifying, 「Cmd + Shift + P」 > 「Developer: Reload Window」 in extension host window. +## PR + +Use `czg` or make sure to prefix type. + +```sh +czg +``` + ## publish +### Manual publish + ```sh pnpm add -g @vscode/vsce ``` diff --git a/package.json b/package.json index 28dd4d0..3d9ad4f 100644 --- a/package.json +++ b/package.json @@ -27,13 +27,13 @@ }, "scripts": { "dev": "pnpm esbuild:watch", + "build": "pnpm run esbuild-base --minify", "esbuild-base": "rimraf dist && esbuild ./src/extension.ts --bundle --outfile=dist/extension.js --external:vscode --format=cjs --platform=node", "esbuild": "pnpm run esbuild-base --sourcemap", "esbuild:watch": "pnpm run esbuild-base --sourcemap --watch", "lint": "eslint \"src/**/*.ts\"", "test": "vitest", "test:ci": "vitest run", - "vscode:prepublish": "pnpm run esbuild-base --minify", "vsce:package": "pnpm vsce package --no-dependencies", "vsce:publish": "pnpm vsce publish --no-dependencies" },