Update reusable workflows, fix review points

This commit is contained in:
IvanZosimov
2022-11-25 12:28:50 +01:00
parent 32b7d0be15
commit 6e4d0e1344
3 changed files with 23 additions and 24 deletions
+6 -7
View File
@@ -1,7 +1,6 @@
# This workflow helps us to be sure that generated innards of `dist` directory actually match what we expect them to be.
# The `dist` is a special directory in Actions.
# When you reference an action with `uses:` in a workflow, javascript files from `dist` will run.
# In Actions, we generate the dist through a build process from other source files.
# This workflow helps to be sure that generated innards of `dist` directory actually match what we expect them to be.
# The `dist` is a special directory in Actions which contains distributable JS files.
# In Actions, the `dist` is generated through a build process from other source files.
name: Check dist
@@ -9,17 +8,17 @@ on:
workflow_call:
inputs:
dist-path:
description: "Optional input to set a path to the dist folder. If it's not set defaults to './dist'"
description: "Optional input to set a path to the dist folder. If it's not set, defaults to './dist'"
required: false
type: string
default: "./dist"
build-command:
description: "Optional input to configure build command in case the default one doesn't suit. If it's not set defaults to 'npm run build'"
description: "Optional input to configure build command in case the default one doesn't suit. If it's not set, defaults to 'npm run build'"
required: false
type: string
default: "npm run build"
node-version:
description: "Optional input to set version of node.js. The input syntax corresponds to the setup-node's one."
description: "Optional input to set version of Node.js used to build a project. The input syntax corresponds to the setup-node's one"
required: false
type: string
default: "16.x"