Skip to content

Commit f8d7f0c

Browse files
committed
Update publish
1 parent bb77d42 commit f8d7f0c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.ado/publish.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ function doPublish() {
3030

3131
exec(`git config --global user.email "[email protected]"`);
3232
exec(`git config --global user.name "React-Native Build"`);
33+
exec(`git remote set-url origin https://rnbot:${process.env.GIT_TOKEN}@github.com/microsoft/react-native.git`);
3334

3435
exec(`git add ${pkgJsonPath}`);
3536
exec(`git commit -m "Applying package update to ${releaseVersion}`);

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
env:
6161
BUILD_STAGINGDIRECTORY: ${{ runner.temp }}\final
6262
BUILD_SOURCEBRANCH: ${{ github.ref }}
63+
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
6364

6465
- name: Set NuGet source
6566
run: nuget sources add -name nugetfeed -source ${{ secrets.NUGET_FEED }} -username anything -password ${{ secrets.NUGET_AUTH }}

0 commit comments

Comments
 (0)