Skip to content

Commit 31e3f7b

Browse files
committed
Add nr-tables-nodes package to the pre-staging environment
1 parent f0e2f33 commit 31e3f7b

1 file changed

Lines changed: 30 additions & 7 deletions

File tree

.github/workflows/branch-deploy.yaml

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ on:
2626
description: 'flowfuse/nr-assistant branch name'
2727
required: true
2828
default: 'main'
29+
nr_tables_nodes_branch:
30+
description: 'flowfuse/nr-tables-nodes branch name'
31+
required: true
32+
default: 'main'
2933
pull_request:
3034
types:
3135
- opened
@@ -80,7 +84,7 @@ jobs:
8084
needs.validate-user.outputs.is_org_member == 'true' &&
8185
github.event_name == 'workflow_dispatch' &&
8286
inputs.driver_k8s_branch != 'main'
83-
uses: 'flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@v0.40.0'
87+
uses: 'flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@v0.42.0'
8488
with:
8589
package_name: driver-k8s
8690
publish_package: true
@@ -97,7 +101,7 @@ jobs:
97101
needs.validate-user.outputs.is_org_member == 'true' &&
98102
github.event_name == 'workflow_dispatch' &&
99103
inputs.nr_project_nodes_branch != 'main'
100-
uses: 'flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@v0.40.0'
104+
uses: 'flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@v0.42.0'
101105
with:
102106
package_name: nr-project-nodes
103107
publish_package: true
@@ -114,7 +118,7 @@ jobs:
114118
needs.validate-user.outputs.is_org_member == 'true' &&
115119
github.event_name == 'workflow_dispatch' &&
116120
inputs.nr_file_nodes_branch != 'main'
117-
uses: 'flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@v0.40.0'
121+
uses: 'flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@v0.42.0'
118122
with:
119123
package_name: nr-file-nodes
120124
publish_package: true
@@ -131,7 +135,7 @@ jobs:
131135
needs.validate-user.outputs.is_org_member == 'true' &&
132136
github.event_name == 'workflow_dispatch' &&
133137
inputs.nr_assistant_branch != 'main'
134-
uses: 'flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@v0.40.0'
138+
uses: 'flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@v0.42.0'
135139
with:
136140
package_name: nr-assistant
137141
publish_package: true
@@ -141,18 +145,36 @@ jobs:
141145
secrets:
142146
npm_registry_token: ${{ secrets.NPM_PUBLISH_TOKEN }}
143147

148+
publish_nr_tables_nodes:
149+
name: Build and publish nr-tables-nodes package
150+
needs: validate-user
151+
if: |
152+
needs.validate-user.outputs.is_org_member == 'true' &&
153+
github.event_name == 'workflow_dispatch' &&
154+
inputs.nr_tables_nodes_branch != 'main'
155+
uses: 'flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@v0.42.0'
156+
with:
157+
package_name: nr-tables-nodes
158+
publish_package: true
159+
repository_name: 'FlowFuse/nr-tables-nodes'
160+
branch_name: ${{ inputs.nr_tables_nodes_branch }}
161+
release_name: "pre-staging-${{ inputs.nr_tables_nodes_branch }}"
162+
secrets:
163+
npm_registry_token: ${{ secrets.NPM_PUBLISH_TOKEN }}
164+
144165
publish_nr_launcher:
145166
name: Build and publish nr-launcher package
146167
needs:
147168
- validate-user
148169
- publish_nr_project_nodes
149170
- publish_nr_file_nodes
150171
- publish_nr_assistant
172+
- publish_nr_tables_nodes
151173
if: |
152174
needs.validate-user.outputs.is_org_member == 'true' &&
153175
github.event_name == 'workflow_dispatch' &&
154-
(always() && inputs.nr_launcher_branch != 'main') || needs.publish_nr_project_nodes.result == 'success' || needs.publish_nr_file_nodes.result == 'success' || needs.publish_nr_assistant.result == 'success'
155-
uses: 'flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@v0.40.0'
176+
(always() && inputs.nr_launcher_branch != 'main') || needs.publish_nr_project_nodes.result == 'success' || needs.publish_nr_file_nodes.result == 'success' || needs.publish_nr_assistant.result == 'success' || needs.publish_nr_tables_nodes.result == 'success'
177+
uses: 'flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@v0.42.0'
156178
with:
157179
package_name: flowfuse-nr-launcher
158180
publish_package: true
@@ -163,6 +185,7 @@ jobs:
163185
@flowfuse/nr-project-nodes=${{ inputs.nr_project_nodes_branch != 'main' && needs.publish_nr_project_nodes.outputs.release_name || 'nightly' }}
164186
@flowfuse/nr-file-nodes=${{ inputs.nr_file_nodes_branch != 'main' && needs.publish_nr_file_nodes.outputs.release_name || 'nightly' }}
165187
@flowfuse/nr-assistant=${{ inputs.nr_assistant_branch != 'main' && needs.publish_nr_assistant.outputs.release_name || 'nightly' }}
188+
@flowfuse/nr-tables-nodes=${{ inputs.nr_tables_nodes_branch != 'main' && needs.publish_nr_tables_nodes.outputs.release_name || 'nightly' }}
166189
secrets:
167190
npm_registry_token: ${{ secrets.NPM_PUBLISH_TOKEN }}
168191

@@ -175,7 +198,7 @@ jobs:
175198
needs.validate-user.outputs.is_org_member == 'true' &&
176199
github.event_name == 'workflow_dispatch' &&
177200
(always() && needs.publish_nr_launcher.result == 'success')
178-
uses: flowfuse/github-actions-workflows/.github/workflows/build_container_image.yml@v0.40.0
201+
uses: flowfuse/github-actions-workflows/.github/workflows/build_container_image.yml@v0.42.0
179202
with:
180203
image_name: 'node-red'
181204
dockerfile_path: Dockerfile

0 commit comments

Comments
 (0)