Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: 'Build Ionic Core with Stencil Prerelease'
description: 'Build Ionic Core with a Prerelease Build of Stencil'
inputs:
stencil-version:
stencil-core-version:
description: 'The NPM tag of @stencil/core to install.'
type: string
required: true
stencil-react-output-target-version:
description: 'The NPM tag of @stencil/react-output-target to install.'
type: string
required: true
runs:
using: 'composite'
steps:
Expand All @@ -17,16 +21,24 @@ runs:
run: npm ci
working-directory: ./core
shell: bash
- name: 📦 Install Stencil ${{ inputs.stencil-version }}
- name: 📦 Install Stencil Core ${{ inputs.stencil-core-version }}
working-directory: ./core
run: npm i @stencil/core@${{ inputs.stencil-version }}
run: npm i @stencil/core@${{ inputs.stencil-core-version }}
shell: bash
- name: 📦 Install Stencil React Output Target ${{ inputs.stencil-react-output-target-version }}
working-directory: ./core
run: npm i @stencil/react-output-target@${{ inputs.stencil-react-output-target-version }}
shell: bash
- name: 🏗️ Build Core
run: npm run build -- --ci --debug --verbose
working-directory: ./core
shell: bash
- name: 🏗️ Lint
run: npm run lint
working-directory: ./packages/react
shell: bash
- uses: ./.github/workflows/actions/upload-archive
with:
name: ionic-core
output: core/CoreBuild.zip
paths: core/dist core/components core/css core/hydrate core/loader core/src/components.d.ts core/package.json
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
16 changes: 7 additions & 9 deletions .github/workflows/actions/build-react/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,14 @@ runs:
run: npm run test.spec
shell: bash
working-directory: ./packages/react
- name: Clean core package.json
run: git checkout ./package.json
shell: bash
working-directory: ./core
- name: 🔍 Check Diff
run: git diff --exit-code
shell: bash
working-directory: ./packages/react
- uses: ./.github/workflows/actions/upload-archive
with:
name: ionic-react
output: packages/react/ReactBuild.zip
paths: packages/react/dist packages/react/css
paths: packages/react/dist packages/react/css packages/react/package.json
- name: Clean package.json updates
run: git checkout ./core/package.json ./packages/react/package.json
shell: bash
- name: 🔍 Check Diff
run: git diff --exit-code
shell: bash
4 changes: 1 addition & 3 deletions .github/workflows/actions/build-vue/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@ runs:
shell: bash
working-directory: ./packages/vue
- name: Clean core package.json
run: git checkout ./package.json
run: git checkout ./core/package.json ./packages/react/package.json
shell: bash
working-directory: ./core
- name: 🔍 Check Diff
run: git diff --exit-code
shell: bash
working-directory: ./packages/vue
- uses: ./.github/workflows/actions/upload-archive
with:
name: ionic-vue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ runs:
path: ./core
filename: CoreBuild.zip
- name: Clean core package.json
run: git checkout ./package.json
run: git checkout ./core/package.json ./packages/react/package.json
shell: bash
working-directory: ./core
- name: 🔍 Check Diff
run: |
git diff --exit-code || {
Expand Down
17 changes: 14 additions & 3 deletions .github/workflows/stencil-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@ on:
- cron: '00 06 * * 1-5'
workflow_dispatch:
inputs:
npm_release_tag:
npm_release_tag_core:
required: true
type: string
description: What version should be pulled from NPM?
description: What stencil/core version should be pulled from NPM?
default: nightly
npm_release_tag_react_output_target:
required: true
type: string
description: What stencil/react-output-target version should be pulled from NPM?
default: latest

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


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

build-react-router:
Expand Down
Loading