Skip to content

feat: add automation/add-tab action #333

feat: add automation/add-tab action

feat: add automation/add-tab action #333

Workflow file for this run

name: Build and push packages
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
uses: 'flowfuse/github-actions-workflows/.github/workflows/build_node_package.yml@v0.52.0'
with:
node: '[
{"version": "16", "tests": true, "lint": false},
{"version": "18", "tests": true, "lint": true},
{"version": "20", "tests": true, "lint": true},
]'
publish:
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@v0.52.0'
with:
package_name: nr-assistant
publish_package: true
secrets:
npm_registry_token: ${{ secrets.NPM_PUBLISH_TOKEN }}
dispatch_nr_launcher:
name: Dispatch nr-launcher package build
needs: publish
runs-on: ubuntu-latest
steps:
- name: Generate a token
id: generate_token
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
with:
app-id: ${{ secrets.GH_BOT_APP_ID }}
private-key: ${{ secrets.GH_BOT_APP_KEY }}
owner: ${{ github.repository_owner }}
repositories: nr-launcher
- name: Trigger nr-launcher package build
uses: benc-uk/workflow-dispatch@7a027648b88c2413826b6ddd6c76114894dc5ec4 # v1.3.1
with:
workflow: publish.yml
repo: flowfuse/nr-launcher
ref: main
token: ${{ steps.generate_token.outputs.token }}