@flowfuse/nr-assistant 0.1.0 → 0.1.1-a283d07-202407040812.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
name: Build and push packages
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- main
|
|
8
|
+
pull_request:
|
|
9
|
+
branches:
|
|
10
|
+
- main
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build:
|
|
14
|
+
uses: 'flowfuse/github-actions-workflows/.github/workflows/build_node_package.yml@v0.19.0'
|
|
15
|
+
with:
|
|
16
|
+
node: '[
|
|
17
|
+
{"version": "16", "tests": true, "lint": false},
|
|
18
|
+
{"version": "18", "tests": true, "lint": true},
|
|
19
|
+
{"version": "20", "tests": true, "lint": true},
|
|
20
|
+
]'
|
|
21
|
+
|
|
22
|
+
publish:
|
|
23
|
+
needs: build
|
|
24
|
+
if: |
|
|
25
|
+
( github.event_name == 'push' && github.ref == 'refs/heads/main' ) ||
|
|
26
|
+
( github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' )
|
|
27
|
+
uses: 'flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@v0.19.0'
|
|
28
|
+
with:
|
|
29
|
+
package_name: nr-assistant
|
|
30
|
+
publish_package: true
|
|
31
|
+
secrets:
|
|
32
|
+
npm_registry_token: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
|
33
|
+
|
|
34
|
+
dispatch_nr_launcher:
|
|
35
|
+
name: Dispatch nr-launcher package build
|
|
36
|
+
needs: publish
|
|
37
|
+
runs-on: ubuntu-latest
|
|
38
|
+
steps:
|
|
39
|
+
- name: Generate a token
|
|
40
|
+
id: generate_token
|
|
41
|
+
uses: tibdex/github-app-token@v1
|
|
42
|
+
with:
|
|
43
|
+
app_id: ${{ secrets.GH_BOT_APP_ID }}
|
|
44
|
+
private_key: ${{ secrets.GH_BOT_APP_KEY }}
|
|
45
|
+
- name: Trigger nr-launcher package build
|
|
46
|
+
uses: benc-uk/workflow-dispatch@v1
|
|
47
|
+
with:
|
|
48
|
+
workflow: publish.yml
|
|
49
|
+
repo: flowfuse/nr-launcher
|
|
50
|
+
ref: main
|
|
51
|
+
token: ${{ steps.generate_token.outputs.token }}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowfuse/nr-assistant",
|
|
3
|
-
"version": "0.1.0",
|
|
3
|
+
"version": "0.1.1-a283d07-202407040812.0",
|
|
4
4
|
"description": "FlowFuse Node-RED assistant plugin",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -44,4 +44,4 @@
|
|
|
44
44
|
"eslint-plugin-html": "7.1.0",
|
|
45
45
|
"eslint-plugin-no-only-tests": "^3.1.0"
|
|
46
46
|
}
|
|
47
|
-
}
|
|
47
|
+
}
|