Skip to content

Commit

Permalink
ci: choose kit source and version
Browse files Browse the repository at this point in the history
  • Loading branch information
Ni55aN committed Aug 20, 2024
1 parent 1f71f98 commit 9f2172f
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,17 @@ on:
description: 'Node version'
type: string
required: true

kit-version-source:
description: 'Rete Kit version source (npm or github)'
type: choice
options:
- npm
- github
default: 'npm'
kit-version:
description: 'Rete Kit version/reference'
type: string
default: 'latest'

jobs:
build-app:
Expand All @@ -71,8 +81,21 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node }}
- name: Install Rete Kit
run: npm i -g rete-kit
- name: Install Rete Kit from NPM
if: kit-version-source == 'npm'
run: npm i -g rete-kit@${{ inputs.kit-version }}
- uses: actions/checkout@v3
if: kit-version-source == 'github'
with:
repository: retejs/rete-kit
token: ${{ secrets.RETE_QA_PUBLIC_PULL }}
ref: ${{ inputs.kit-version }}
- name: Install Rete Kit from GitHub
if: kit-version-source == 'github'
run: |
npm ci
npm run build
npm i -g .
- name: Rete Kit version
run: rete-kit -V
- name: Bootstrapp application
Expand Down

0 comments on commit 9f2172f

Please sign in to comment.