mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
da5f15a25b
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/54313 This change updates the draft release workflow to add dSYMS for Hermes V1 and also updating the url from where the dSYMs can be downloaded. ## Changelog: [Internal] - Reviewed By: j-piasecki Differential Revision: D85758123 fbshipit-source-id: 7d771266de5b3829e9a39c649b610aaf79aa6206
54 lines
2.1 KiB
YAML
54 lines
2.1 KiB
YAML
name: Create Draft Release
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
hermesVersion:
|
|
required: false
|
|
type: string
|
|
description: The version of Hermes to use for this release (eg. 0.15.0). If not specified, it will use React Native Version
|
|
hermesV1Version:
|
|
required: false
|
|
type: string
|
|
description: The version of Hermes V1 to use for this release (eg. 250829098.0.2). If not specified, it will use React Native Version
|
|
|
|
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 "bot@reactnative.dev"
|
|
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}}', ${{ inputs.hermesVersion }}, ${{ inputs.hermesV1Version }})).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 {uploadReleaseAssetsForDotSlashFiles} = require('./scripts/releases/upload-release-assets-for-dotslash.js');
|
|
const version = '${{ github.ref_name }}';
|
|
await uploadReleaseAssetsForDotSlashFiles({
|
|
version,
|
|
token: '${{secrets.REACT_NATIVE_BOT_GITHUB_TOKEN}}',
|
|
releaseId: process.env.RELEASE_ID,
|
|
});
|