Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on:
release:
types: [published]

permissions:
id-token: write # Required for OIDC
contents: read

jobs:
npm-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup node.js
uses: actions/setup-node@v4
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'

# Ensure npm 11.5.1 or later is installed
- name: Update npm
run: npm install -g npm@latest
- run: npm ci
- run: npm run build --if-present
- run: npm test
- run: npm publish
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
branches: [ "master" ]

env:
NODEJS_DEFAULT_VERSION: 20.x
NODEJS_DEFAULT_VERSION: 22.x

jobs:
lint:
Expand All @@ -34,7 +34,7 @@ jobs:
strategy:
matrix:
# https://nodered.org/docs/faq/node-versions
node-version: [20.x, 22.x]
node-version: [20.x, 22.x, 24.x]

steps:
- uses: actions/checkout@v4
Expand Down
35 changes: 34 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![npm version](https://badge.fury.io/js/@waldbaer%2Fnode-red-retry.svg)](https://badge.fury.io/js/@waldbaer%2Fnode-red-retry)
[![MIT License](https://img.shields.io/github/license/waldbaer/node-red-retry?style=flat-square)](https://opensource.org/licenses/MIT)
[![GitHub issues open](https://img.shields.io/github/issues/waldbaer/node-red-retry?style=flat-square)](https://github.com/waldbaer/node-red-retry/issues)
[![GitHub Actions](https://github.com/waldbaer/node-red-retry/actions/workflows/node.js.yml/badge.svg?branch=master)](https://github.com/waldbaer/node-red-retry/actions/workflows/node.js.yml)
[![GitHub Actions](https://github.com/waldbaer/node-red-retry/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/waldbaer/node-red-retry/actions/workflows/test.yml)
[![Coverage Status](https://coveralls.io/repos/github/waldbaer/node-red-retry/badge.svg?branch=master)](https://coveralls.io/github/waldbaer/node-red-retry?branch=master)

A user-friendly node for configurable retry handling in Node-RED flows.
Expand Down Expand Up @@ -56,3 +56,36 @@ Changes can be followed [here](/CHANGELOG.md).

## Examples
Import into Node-RED instance via Node-RED -> Import -> Examples -> @waldbaer/node-red-retry.



# Development

## Setup environment

```
npm install --save-dev
```

### Format / Linter / Tests

```
# Check linter
npm run lint

# Run all tests incl. coverage check
npm run coverage

# Run subset of tests
npm run test -- -g "<filter>"

# Node-RED package verification
npm run node-red-dev-validate
```

### Update dependencies to latest versions

```
# Show outdated dependencies
npm outdated
```
30 changes: 17 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@
"node": ">=8"
},
"devDependencies": {
"eslint": "^8.57.0",
"eslint-config-google": "^0.14.0",
"eslint-plugin-html": "^8.1.1",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-n": "^17.10.2",
"eslint-plugin-promise": "^7.1.0",
"mocha": "^10.7.3",
"mocha-suppress-logs": "^0.5.1",
"node-red": "^4.0.2",
"node-red-dev": "^0.1.6",
"node-red-node-test-helper": "^0.3.4",
"nyc": "^17.0.0"
"eslint": "8.57.1",
"eslint-config-google": "0.14.0",
"eslint-plugin-html": "8.1.3",
"eslint-plugin-import": "2.32.0",
"eslint-plugin-n": "17.23.1",
"eslint-plugin-promise": "7.2.1",
"mocha": "11.7.4",
"mocha-suppress-logs": "0.6.0",
"node-red": "4.1.1",
"node-red-dev": "0.1.6",
"node-red-node-test-helper": "0.3.5",
"nyc": "17.1.0"
},
"eslintConfig": {
"env": {
Expand Down Expand Up @@ -71,7 +71,11 @@
},
"nyc": {
"check-coverage": true,
"reporter": ["lcov", "text", "text-summary"],
"reporter": [
"lcov",
"text",
"text-summary"
],
"branches": 100,
"lines": 100,
"functions": 100,
Expand Down