Skip to content

Commit c6d7b46

Browse files
committed
update publish
1 parent f8d7f0c commit c6d7b46

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

.ado/publish.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function doPublish() {
5858

5959
const assetUpdateUrl = `https://uploads.github.com/repos/microsoft/react-native/releases/{id}/assets?name=react-native-${releaseVersion}.tgz`;
6060
const authHeader =
61-
"Basic " + new Buffer(":" + process.env.githubToken).toString("base64");
61+
"Basic " + new Buffer(":" + process.env.GIT_TOKEN).toString("base64");
6262
const userAgent = "Microsoft-React-Native-Release-Agent";
6363

6464
let uploadReleaseAssetUrl = "";

.github/workflows/publish.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
push:
44
branches:
55
- master
6+
paths:
7+
- "!package.json"
68

79
jobs:
810

@@ -18,16 +20,6 @@ jobs:
1820

1921
- run: npm install
2022

21-
- name: github context
22-
run: echo %GITHUB_CONTEXT%
23-
env:
24-
GITHUB_CONTEXT: ${{ toJson(github) }}
25-
26-
- name: job context
27-
run: echo %JOB_CONTEXT%
28-
env:
29-
JOB_CONTEXT: ${{ toJson(job) }}
30-
3123
- name: Bump package version
3224
run: node .ado/bumpFileVersions.js
3325
env:
@@ -58,7 +50,7 @@ jobs:
5850
- name: Do Publish
5951
run: node .ado/publish.js
6052
env:
61-
BUILD_STAGINGDIRECTORY: ${{ runner.temp }}\final
53+
BUILD_STAGINGDIRECTORY: ${{ runner.temp }}
6254
BUILD_SOURCEBRANCH: ${{ github.ref }}
6355
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
6456

0 commit comments

Comments
 (0)