Skip to content

fix(integration): added patch command #35

fix(integration): added patch command

fix(integration): added patch command #35

Workflow file for this run

### Usage notes ##
#
# Two things are needed:
#
# 1. configure path matching the package in the "Detect changes" step below.
# This allows to match a "package" idenfifier to changes in a subdirectory.
# e.g.:
# my-package: '**/my-package/**'
#
# 2. configure the package in .github/js-packages.json.
# This allows to define variables that will be used in the pipeline.
# e.g:
# {
# "my-package": {<-- the "package" identifier
# "name": "@neuroglia/my-package", <-- the actual name of the package on the registry
# "path": "./", <-- the path from where to run npm scripts and where angular.json is located
# }
# }
###
name: Continous integration entry point for JS
on:
push:
branches: [ main ]
paths:
- 'projects/**'
pull_request:
branches: [ main ]
paths:
- 'projects/**'
jobs:
changes:
# Skip if it's not running in the `neuroglia-io/js-framework` repo
if: github.repository == 'neuroglia-io/js-framework'
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
packages: ${{ steps.detection.outputs.changes }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Detect changes
id: detection
uses: dorny/paths-filter@v2
with:
filters: |
common: 'projects/neuroglia/common/**'
string-formatter: 'projects/neuroglia/string-formatter/**'
logging: 'projects/neuroglia/logging/**'
logging-transport-console: 'projects/neuroglia/logging-transport-console/**'
integration: 'projects/neuroglia/integration/**'
authorization-rule: 'projects/neuroglia/authorization-rule/**'
angular-logging: 'projects/neuroglia/angular-logging/**'
angular-common: 'projects/neuroglia/angular-common/**'
angular-oidc: 'projects/neuroglia/angular-oidc/**'
angular-rest-core: 'projects/neuroglia/angular-rest-core/**'
angular-signalr: 'projects/neuroglia/angular-signalr/**'
angular-ngrx: 'projects/neuroglia/angular-ngrx/**'
angular-application-common: 'projects/neuroglia/angular-application-common/**'
angular-datasource-odata: 'projects/neuroglia/angular-datasource-odata/**'
angular-ngrx-component-store-odata-table: 'projects/neuroglia/angular-ngrx-component-store-odata-table/**'
angular-ui-json-presenter: 'projects/neuroglia/angular-ui-json-presenter/**'
angular-ui-material-odata-table: 'projects/neuroglia/angular-ui-material-odata-table/**'
angular-native-federation: 'projects/neuroglia/angular-native-federation/**'
angular-native-federation-tools: 'projects/neuroglia/angular-native-federation-tools/**'
- name: Defined output 'packages' as
run: echo "${{ steps.detection.outputs.changes }}"
pipeline:
needs: changes
strategy:
max-parallel: 1
fail-fast: false
matrix:
package: ${{ fromJSON(needs.changes.outputs.packages) }}
uses: ./.github/workflows/js-package-pipeline.yml
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
package: ${{ matrix.package }}