Repository navigation
77 lines (72 loc) 路 2.07 KB
/
Copy pathrelease.yml
File metadata and controls
77 lines (72 loc) 路 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Release
on:
schedule:
# Recovery if the immediate dispatch from Nitro was missed or failed.
- cron: "17 * * * *"
workflow_dispatch:
inputs:
core-tag:
description: "Published Nitro tag to adopt or retry (empty prioritizes regular releases, then the newest nightly)"
type: string
required: false
concurrency:
group: release
queue: max
cancel-in-progress: false
permissions:
contents: read
jobs:
discover:
if: github.repository == 'margelo/react-native-nitro-modules' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.release.outputs.tag }}
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: actions/setup-node@v6
with:
node-version: "24"
- name: Find the next completed core release
id: release
env:
GH_TOKEN: ${{ github.token }}
CORE_TAG: ${{ inputs.core-tag }}
run: node scripts/find-core-release.mjs
release:
needs: discover
if: needs.discover.outputs.tag != ''
runs-on: macos-26
timeout-minutes: 90
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v7
with:
ref: main
fetch-depth: 0
- uses: actions/setup-node@v6
with:
node-version: "24"
- run: npm install --global npm@11.19.0
- uses: oven-sh/setup-bun@v2
with:
bun-version-file: package.json
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
- uses: actions/setup-java@v6
with:
distribution: zulu
java-version: "17"
- uses: android-actions/setup-android@v3
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_26.5.app/Contents/Developer
- name: Adopt, verify and publish the core release
env:
GH_TOKEN: ${{ github.token }}
CORE_TAG: ${{ needs.discover.outputs.tag }}
BUNDLE_FROZEN: "true"
run: node scripts/release-ci.mjs