Merge branch 'merge_4.4.1' into feature/plasticops_trigger-ai-inference #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: GeoNode Client 4.4.x CI (build) | |
concurrency: | |
group: "client_build_4.4.x" | |
cancel-in-progress: true | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push events but only for the feature/plasticops_trigger-ai-inference branch | |
push: | |
branches: [ feature/plasticops_trigger-ai-inference ] | |
paths: | |
- "VERSION" | |
- "geonode_mapstore_client/client/**" | |
- "!geonode_mapstore_client/client/version.txt" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
build_and_commit: | |
env: | |
working-directory: ./geonode_mapstore_client/client | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checking out" | |
uses: actions/checkout@v4 | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
########### | |
# SET UP | |
######### | |
- name: "Setting up npm" | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
############ | |
# CACHING | |
########## | |
- name: "Cache node modules" | |
uses: actions/cache@v4 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
############### | |
# NPM BUILD | |
############# | |
- name: "Run npm install" | |
run: npm install | |
working-directory: ${{env.working-directory}} | |
- name: "Run npm compile" | |
run: npm run compile | |
working-directory: ${{env.working-directory}} | |
############### | |
# COMMIT | |
############# | |
- name: "Stage files" | |
run: git add --all | |
- name: "Create Pull Request" | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
base: "feature/plasticops_trigger-ai-inference" | |
title: "[feature/plasticops_trigger-ai-inference] new client build" | |
body: "Automated client build from GeoNode Client CI" | |
delete-branch: true |