diff --git a/package.json b/package.json index ec3b8ad..22cd398 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,9 @@ "version": "0.2.0", "description": "A plugin to easily trigger GitHub Actions workflows from Strapi.", "strapi": { - "name": "GitHub Publishing", + "name": "github-publish", "icon": "plug", + "kind": "plugin", "description": "Publish changes via GitHub Actions." }, "dependencies": {}, @@ -30,7 +31,7 @@ } ], "engines": { - "node": ">=10.16.0 <=14.x.x", + "node": ">=14.x.x <=18.x.x", "npm": ">=6.0.0" }, "license": "MIT", diff --git a/server/config.js b/server/config.js index a1d078c..8928987 100644 --- a/server/config.js +++ b/server/config.js @@ -2,19 +2,19 @@ module.exports = { default: {}, validator: ({ owner, repo, workflow_id, token, branch }) => { if (!owner) { - throw new Error("owner is a required"); + throw new Error("owner is required"); } if (!repo) { - throw new Error("repo is a required"); + throw new Error("repo is required"); } if (!workflow_id) { - throw new Error("workflow_id is a required"); + throw new Error("workflow_id required"); } if (!token) { - throw new Error("token is a required"); + throw new Error("token is required"); } if (!branch) { - throw new Error("branch is a required"); + throw new Error("branch is required"); } }, };