[DRAFT][NOT FOR MERGING] Test branch for #52930 #20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Draft Release | |
on: | |
workflow_call: | |
pull_request: | |
jobs: | |
create-draft-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
fetch-tags: true | |
- name: Install dependencies | |
uses: ./.github/actions/yarn-install | |
- name: Configure Git | |
shell: bash | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "React Native Bot" | |
- name: Create draft release | |
uses: actions/github-script@v6 | |
id: create-draft-release | |
with: | |
script: | | |
const {createDraftRelease} = require('./.github/workflow-scripts/createDraftRelease.js'); | |
const version = '${{ github.ref_name }}'; | |
const {isLatest} = require('./.github/workflow-scripts/publishTemplate.js'); | |
return (await createDraftRelease(version, isLatest(), '${{secrets.REACT_NATIVE_BOT_GITHUB_TOKEN}}')).id; | |
result-encoding: string | |
- name: Upload release assets for DotSlash | |
uses: actions/github-script@v6 | |
env: | |
RELEASE_ID: ${{ steps.create-draft-release.outputs.result }} | |
with: | |
script: | | |
const {uploadReleaseAssetsForDotSlash} = require('./scripts/releases/upload-release-assets-for-dotslash.js'); | |
// const version = '${{ github.ref_name }}'; | |
const version = 'v0.82.0-20250807-1752'; | |
await uploadReleaseAssetsForDotSlash({ | |
version, | |
token: '${{secrets.REACT_NATIVE_BOT_GITHUB_TOKEN}}', | |
releaseId: process.env.RELEASE_ID, | |
}); |