fix: jest 버전, ESLint 통일, setup.yml 오타, private 추가 #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Template Setup | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| setup: | |
| if: github.run_number == 1 | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check if template | |
| id: check | |
| run: | | |
| NAME=$(node -e "console.log(JSON.parse(require('fs').readFileSync('package.json','utf8')).name)") | |
| if [ "$NAME" = "my-extension" ]; then | |
| echo "is_template=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "is_template=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Create setup checklist | |
| if: steps.check.outputs.is_template == 'true' | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| gh issue create \ | |
| --title "Setup: Configure your extension" \ | |
| --body "$(cat <<'EOF' | |
| Welcome! You've created a new project from **vscode-extension-starter**. Here's your setup checklist: | |
| ## Required | |
| - [ ] Update `package.json` — change `name`, `displayName`, `description`, `publisher` | |
| - [ ] Update command prefix in `package.json` contributes (replace `my-extension.`) | |
| - [ ] Update command prefix in `src/commands/helloWorld.js` | |
| - [ ] Set `engines.vscode` to the minimum VS Code version you need | |
| ## CI/CD Setup | |
| - [ ] **VS Marketplace:** Add `VSCE_PAT` GitHub Secret — see [Marketplace Setup Guide](docs/MARKETPLACE_SETUP.md) | |
| - [ ] **Open VSX:** Add `OVSX_PAT` GitHub Secret — see [Open VSX Setup Guide](docs/OPENVSX_SETUP.md) | |
| ## Recommended | |
| - [ ] Add your own commands in `src/commands/` | |
| - [ ] Write tests in `tests/` and run with `npm test` | |
| - [ ] Update `CHANGELOG.md` with your changes | |
| - [ ] Delete this issue when done | |
| Happy building! | |
| EOF | |
| )" |