@samitouri / QOS-React-2 / commits / 25cac220d6

[ci] Allow passing various params to compiler publish script (#31283)

Allow passing in a few more inputs when manually publishing.

lauren committed Oct 17, 2024 at 18:12 UTC 25cac220d6b6576e50ec52cf87801ad036fa7bc9
3 files changed +17 -3
.github/workflows/compiler_prereleases.yml
+4 -1
@@ -13,6 +13,9 @@ on:
13 dist_tag:
14 required: true
15 type: string
16 + version_name:
17 + required: true
18 + type: string
19 secrets:
20 NPM_TOKEN:
21 required: true
@@ -49,4 +52,4 @@ jobs:
52 - name: Publish packages to npm
53 run: |
54 cp ./scripts/release/ci-npmrc ~/.npmrc
52 - scripts/release/publish.js --frfr --ci --versionName=0.0.0 --tag ${{ inputs.dist_tag }}
55 + scripts/release/publish.js --frfr --ci --versionName=${{ inputs.version_name }} --tag ${{ inputs.dist_tag }}
.github/workflows/compiler_prereleases_manual.yml
+12 -2
@@ -5,6 +5,15 @@ on:
5 inputs:
6 prerelease_commit_sha:
7 required: false
8 + release_channel:
9 + required: true
10 + type: string
11 + dist_tag:
12 + required: true
13 + type: string
14 + version_name:
15 + required: true
16 + type: string
17
18 env:
19 TZ: /usr/share/zoneinfo/America/Los_Angeles
@@ -15,7 +24,8 @@ jobs:
24 uses: facebook/react/.github/workflows/compiler_prereleases.yml@main
25 with:
26 commit_sha: ${{ inputs.prerelease_commit_sha || github.sha }}
18 - release_channel: experimental
19 - dist_tag: experimental
27 + release_channel: ${{ inputs.release_channel }}
28 + dist_tag: ${{ inputs.dist_tag }}
29 + version_name: ${{ inputs.version_name }}
30 secrets:
31 NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
.github/workflows/compiler_prereleases_nightly.yml
+1
@@ -16,5 +16,6 @@ jobs:
16 commit_sha: ${{ github.sha }}
17 release_channel: experimental
18 dist_tag: experimental
19 + version_name: '0.0.0'
20 secrets:
21 NPM_TOKEN: ${{ secrets.NPM_TOKEN }}