You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Automate bumping typespec-python version in emitter-package.json for the Azure SDK for Python repository. Use this skill when the user wants to update @azure-tools/typespec-python to the latest version, create a PR for the version bump, or manage emitter-package.json updates.
4
+
---
5
+
6
+
# Emitter Package Update
7
+
8
+
Bump `@azure-tools/typespec-python` to the latest version in `emitter-package.json` and create a PR.
9
+
10
+
## Prerequisites
11
+
12
+
Before running this workflow, verify the following tools are installed:
13
+
14
+
```bash
15
+
# Check npm-check-updates
16
+
npx npm-check-updates --version
17
+
18
+
# Check tsp-client
19
+
tsp-client --version
20
+
21
+
# Check GitHub CLI
22
+
gh --version
23
+
```
24
+
25
+
If any tool is missing:
26
+
-**npm-check-updates**: Install via `npm install -g npm-check-updates`
27
+
-**tsp-client**: Install via `npm install -g @azure-tools/typespec-client-generator-cli`
28
+
-**GitHub CLI**: Install from https://cli.github.com/ or via `winget install GitHub.cli`
29
+
30
+
## Workflow
31
+
32
+
### 1. Prepare Repository
33
+
34
+
Reset and sync the SDK repo to a clean state:
35
+
36
+
```bash
37
+
git reset HEAD && git checkout .&& git clean -fd && git checkout origin/main && git pull origin main
38
+
```
39
+
40
+
### 2. Determine Latest Version
41
+
42
+
Run npm-check-updates to find the latest `@azure-tools/typespec-python` version:
0 commit comments