Skip to content

Commit 3e272c8

Browse files
committed
chore(ci): use latest stencil react-output-target in nightly
1 parent 2bf8c97 commit 3e272c8

3 files changed

Lines changed: 33 additions & 16 deletions

File tree

.github/workflows/actions/build-core-stencil-prerelease/action.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
name: 'Build Ionic Core with Stencil Prerelease'
22
description: 'Build Ionic Core with a Prerelease Build of Stencil'
33
inputs:
4-
stencil-version:
4+
stencil-core-version:
55
description: 'The NPM tag of @stencil/core to install.'
66
type: string
77
required: true
8+
stencil-react-output-target-version:
9+
description: 'The NPM tag of @stencil/react-output-target to install.'
10+
type: string
11+
required: true
812
runs:
913
using: 'composite'
1014
steps:
@@ -17,9 +21,13 @@ runs:
1721
run: npm ci
1822
working-directory: ./core
1923
shell: bash
20-
- name: 📦 Install Stencil ${{ inputs.stencil-version }}
24+
- name: 📦 Install Stencil Core ${{ inputs.stencil-core-version }}
25+
working-directory: ./core
26+
run: npm i @stencil/core@${{ inputs.stencil-core-version }}
27+
shell: bash
28+
- name: 📦 Install Stencil React Output Target ${{ inputs.stencil-react-output-target-version }}
2129
working-directory: ./core
22-
run: npm i @stencil/core@${{ inputs.stencil-version }}
30+
run: npm i @stencil/react-output-target@${{ inputs.stencil-react-output-target-version }}
2331
shell: bash
2432
- name: 🏗️ Build Core
2533
run: npm run build -- --ci --debug --verbose
@@ -29,4 +37,4 @@ runs:
2937
with:
3038
name: ionic-core
3139
output: core/CoreBuild.zip
32-
paths: core/dist core/components core/css core/hydrate core/loader core/src/components.d.ts core/package.json
40+
paths: core/dist core/components core/css core/hydrate core/loader core/src/components.d.ts core/package.json packages/react/src/components/components.ts

.github/workflows/actions/build-react/action.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,14 @@ runs:
3131
run: npm run test.spec
3232
shell: bash
3333
working-directory: ./packages/react
34-
- name: Clean core package.json
35-
run: git checkout ./package.json
36-
shell: bash
37-
working-directory: ./core
38-
- name: 🔍 Check Diff
39-
run: git diff --exit-code
40-
shell: bash
41-
working-directory: ./packages/react
4234
- uses: ./.github/workflows/actions/upload-archive
4335
with:
4436
name: ionic-react
4537
output: packages/react/ReactBuild.zip
46-
paths: packages/react/dist packages/react/css
38+
paths: packages/react/dist packages/react/css packages/react/package.json
39+
- name: Clean package.json updates
40+
run: git checkout ./core/package.json ./packages/react/package.json
41+
shell: bash
42+
- name: 🔍 Check Diff
43+
run: git diff --exit-code
44+
shell: bash

.github/workflows/stencil-nightly.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,16 @@ on:
99
- cron: '00 06 * * 1-5'
1010
workflow_dispatch:
1111
inputs:
12-
npm_release_tag:
12+
npm_release_tag_core:
1313
required: true
1414
type: string
15-
description: What version should be pulled from NPM?
15+
description: What stencil/core version should be pulled from NPM?
1616
default: nightly
17+
npm_release_tag_react_output_target:
18+
required: true
19+
type: string
20+
description: What stencil/react-output-target version should be pulled from NPM?
21+
default: latest
1722

1823
# When pushing a new commit we should
1924
# cancel the previous test run to not
@@ -29,7 +34,9 @@ jobs:
2934
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3035
- uses: ./.github/workflows/actions/build-core-stencil-prerelease
3136
with:
32-
stencil-version: ${{ inputs.npm_release_tag || 'nightly' }}
37+
stencil-core-version: ${{ inputs.npm_release_tag_core || 'nightly' }}
38+
stencil-react-output-target-version: ${{ inputs.npm_release_tag_react_output_target || 'latest' }}
39+
3340

3441
test-core-clean-build:
3542
needs: [build-core-with-stencil-nightly]
@@ -173,6 +180,10 @@ jobs:
173180
runs-on: ubuntu-latest
174181
steps:
175182
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
183+
- name: Install Stencil React Output Target
184+
working-directory: ./packages/react
185+
run: npm i @stencil/react-output-target/${{ inputs.npm_release_tag_react_output_target }}
186+
shell: bash
176187
- uses: ./.github/workflows/actions/build-react
177188

178189
build-react-router:

0 commit comments

Comments
 (0)