Merge pull request #1912 from FlowFuse/dependabot/npm_and_yarn/vite-5… #828
This file contains hidden or 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 publish packages to the registry | |
| on: | |
| push: | |
| 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.42.0' | |
| with: | |
| node: '[ | |
| {"version": "20", "tests": true, "lint": true}, | |
| ]' | |
| publish: | |
| needs: build | |
| if: | | |
| github.ref == 'refs/heads/main' | |
| uses: 'flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@v0.42.0' | |
| with: | |
| package_name: node-red-dashboard | |
| publish_package: true | |
| secrets: | |
| npm_registry_token: ${{ secrets.NPM_PUBLISH_TOKEN }} |