Update project nodes for new org #184
Workflow file for this run
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
name: Build and push packages | |
on: | |
workflow_dispatch: | |
inputs: | |
nr_project_nodes_release_name: | |
description: 'nr-project-nodes package version' | |
required: false | |
default: 'nightly' | |
nr_project_nodes_ref: | |
description: 'nr-project-nodes package ref' | |
required: false | |
nr_file_nodes_release_name: | |
description: 'nr-file-nodes package version' | |
required: false | |
default: 'nightly' | |
nr_file_nodes_ref: | |
description: 'nr-file-nodes package ref' | |
required: false | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
uses: 'flowfuse/github-actions-workflows/.github/workflows/build_node_package.yml@132a77418c21639c18318ed6a687e28caa7f4ce8' | |
with: | |
run_tests: true | |
nrLauncherPackage: | |
needs: build | |
if: | | |
( github.event_name == 'push' && github.ref == 'refs/heads/main' ) || | |
( github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' ) | |
uses: 'flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@132a77418c21639c18318ed6a687e28caa7f4ce8' | |
with: | |
package_name: flowforge-nr-launcher | |
publish_package: true | |
package_dependencies: | | |
@flowfuse/nr-project-nodes | |
@flowfuse/nr-file-nodes | |
secrets: | |
npm_registry_token: ${{ secrets.NPM_PUBLISH_TOKEN }} | |
nrThemePackage: | |
needs: build | |
if: | | |
( github.event_name == 'push' && github.ref == 'refs/heads/main' ) || | |
( github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' ) | |
uses: 'flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@132a77418c21639c18318ed6a687e28caa7f4ce8' | |
with: | |
package_name: flowforge-nr-theme | |
publish_package: true | |
working_directory: ./lib/theme | |
disable_ignore_scripts_on_publish: true | |
secrets: | |
npm_registry_token: ${{ secrets.NPM_PUBLISH_TOKEN }} | |
dispatch: | |
name: Dispatch localfs package build pipeline | |
runs-on: ubuntu-latest | |
needs: [nrLauncherPackage, nrThemePackage] | |
steps: | |
- name: Generate a token | |
id: generate_token | |
uses: tibdex/github-app-token@v1 | |
with: | |
app_id: ${{ secrets.GH_BOT_APP_ID }} | |
private_key: ${{ secrets.GH_BOT_APP_KEY }} | |
- name: Trigger localfs package build | |
uses: benc-uk/workflow-dispatch@v1 | |
with: | |
workflow: publish.yml | |
repo: flowfuse/driver-localfs | |
ref: main | |
token: ${{ steps.generate_token.outputs.token }} | |
inputs: '{"nr_launcher_ref": "${{ github.ref }}", "nr_launcher_release_name": "${{ needs.nrLauncherPackage.outputs.release_name }}"}' |