Update or add a Node-Red package on the Node-Red flow library (flows.nodered.org).
This is an updated version of Zehir/update-package-node-red-flow-library-action.
Required The name of the package. Default ""
.
The result of update
name: NPM Publish
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 18.x
- run: npm install
- run: npm test
- id: publish
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
- if: steps.publish.outputs.type != 'none'
name: Update Node-Red flow-library
uses: BigThunderSR/[email protected]
continue-on-error: true
with:
package-name: 'node-red-contrib-onstar2'