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
The workflow is configured with the following permissions in [`.github/workflows/changesets-version.yml`](.github/workflows/changesets-version.yml):
47
36
48
-
4.**Permissions** (Repository permissions):
49
-
- Contents: **Read and write**
50
-
- Pull requests: **Read and write**
51
-
52
-
5.**Where can this GitHub App be installed?**: "Only on this account"
53
-
54
-
6. Click "Create GitHub App"
55
-
56
-
### Step 2: Install GitHub App on Repository
57
-
58
-
1. After creating the app, go to "Install App" in the left sidebar
59
-
2. Click "Install" next to your organization
60
-
3. Select "Only select repositories"
61
-
4. Choose `microsoft/fluentui-react-native`
62
-
5. Click "Install"
63
-
64
-
### Step 3: Generate Private Key
65
-
66
-
1. Go to your GitHub App settings
67
-
2. Scroll to "Private keys" section
68
-
3. Click "Generate a private key"
69
-
4. A `.pem` file will download - **keep this secure!**
70
-
71
-
### Step 4: Get App ID
72
-
73
-
1. In GitHub App settings, find the "App ID" near the top
74
-
2. It's a numeric value (e.g., `123456`)
75
-
3. Copy this number
76
-
77
-
### Step 5: Add Repository Secrets and Variables
78
-
79
-
1. Go to repository settings: https://github.com/microsoft/fluentui-react-native/settings/secrets/actions
37
+
```yaml
38
+
permissions:
39
+
contents: write # For creating commits and tags
40
+
pull-requests: write # For creating version bump PRs
41
+
```
80
42
81
-
2. Add **Repository Secret**`PRIVATE_KEY`:
82
-
- Click "New repository secret"
83
-
- Name: `PRIVATE_KEY`
84
-
- Value: Paste the entire contents of the `.pem` file (including `-----BEGIN RSA PRIVATE KEY-----` and `-----END RSA PRIVATE KEY-----`)
85
-
- Click "Add secret"
43
+
**No additional setup required** - GitHub automatically provides the `GITHUB_TOKEN` secret to workflows with these scoped permissions.
86
44
87
-
3. Go to Variables tab: https://github.com/microsoft/fluentui-react-native/settings/variables/actions
45
+
### Note on GitHub Apps (Alternative Approach)
88
46
89
-
4. Add **Repository Variable**`APP_ID`:
90
-
- Click "New repository variable"
91
-
- Name: `APP_ID`
92
-
- Value: The numeric App ID from Step 4
93
-
- Click "Add variable"
47
+
If your organization has restrictions that prevent the standard `GITHUB_TOKEN` from creating PRs, you can optionally use a GitHub App token approach (like [rnx-kit does](https://github.com/microsoft/rnx-kit/commit/28e835365bdeed97e50ff8e7e68ea9ad531d3849)). However, this adds complexity and is not needed for this repository.
94
48
95
49
## Phase 2: Verify Azure Pipelines Configuration
96
50
@@ -170,6 +124,22 @@ yarn changeset:status
170
124
yarn changeset:status --verbose
171
125
```
172
126
127
+
### Post-Version Hook (dependency-profiles)
128
+
129
+
After version bumps, the `dependency-profiles` package needs to be updated with the latest versions. This is handled automatically in GitHub Actions.
130
+
131
+
**What it does:**
132
+
- Updates `packages/dependency-profiles` with latest package versions
133
+
- Runs `yarn install --mode update-lockfile` to update yarn.lock
0 commit comments