diff --git a/README.md b/README.md index 61e7e57..6b58d4c 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,8 @@ Perfect for Grunt or Gulp tasks that do CSS (or SASS/LESS) compilation or JS tra This repository contains two actions that may be used independently -- typically one after another: -- **build** (elstudio/actions-js-build/build@v2): Looks for a gulpfile.js or Gruntfile.js in the working directory, then installs any required npm packages and runs the appropriate build tool. If it finds neither gulp or grunt, the script runs npm. Set the workflow `args` arguments to run the tasks of your choice. -- **commit** (elstudio/actions-js-build/commit@v3): Commits any file changes, and pushes them back to the current branch of the origin repository on GitHub. +- **build** (elstudio/actions-js-build/build@v4): Looks for a gulpfile.js or Gruntfile.js in the working directory, then installs any required npm packages and runs the appropriate build tool. If it finds neither gulp or grunt, the script runs npm. Set the workflow `args` arguments to run the tasks of your choice. +- **commit** (elstudio/actions-js-build/commit@v4): Commits any file changes, and pushes them back to the current branch of the origin repository on GitHub. ## Usage @@ -26,14 +26,17 @@ jobs: steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 12 - name: Compile with Grunt - uses: elstudio/actions-js-build/build@v4-beta + uses: elstudio/actions-js-build/build@v4 with: wdPath: './web/themes/nw8' - name: Commit changes - uses: elstudio/actions-js-build/commit@v4-beta + uses: elstudio/actions-js-build/commit@v4 with: commitMessage: Regenerate css ``` diff --git a/build/README.md b/build/README.md index 5190c88..b4a5b05 100644 --- a/build/README.md +++ b/build/README.md @@ -4,7 +4,7 @@ Run JS build tasks with Gulp, Grunt or NPM. Perfect for Grunt tasks that do CSS (or SASS/LESS) compilation or JavaScript transpilation. -- **build** (elstudio/actions-js-build/build@master): Looks for a gulpfile.js or Gruntfile.js in the working directory, then installs any required npm packages and runs the build tool. If it finds neither gulp or grunt, the script runs npm. Set the workflow `args` arguments to run the tasks of your choice. +- **build** (elstudio/actions-js-build/build@v4): Looks for a gulpfile.js or Gruntfile.js in the working directory, then installs any required npm packages and runs the build tool. If it finds neither gulp or grunt, the script runs npm. Set the workflow `args` arguments to run the tasks of your choice. This Action for [npm](https://www.npmjs.com/) installs any required npm packages, then installs and runs any installed JavaScript build tools -- currently either Gulp or Grunt. @@ -25,14 +25,16 @@ jobs: steps: - uses: actions/checkout@v2 - + - uses: actions/setup-node@v2 + with: + node-version: 12 - name: Compile with Grunt - uses: elstudio/actions-js-build/build@v4-beta + uses: elstudio/actions-js-build/build@v4 with: wdPath: './web/themes/nw8' - name: Commit changes - uses: elstudio/actions-js-build/commit@v4-beta + uses: elstudio/actions-js-build/commit@v4 with: commitMessage: Regenerate css ``` diff --git a/commit/README.md b/commit/README.md index 96ff1bb..3487a44 100644 --- a/commit/README.md +++ b/commit/README.md @@ -2,7 +2,7 @@ This Action for git commits any changed files and pushes those changes back to the origin repository. -**V3 or later of this action (elstudio/actions-js-build/commit@v3) requires actions/checkout@v2 or later.** +**V3 or later of this action (elstudio/actions-js-build/commit@v4) requires actions/checkout@v2 or later.** ## Usage @@ -21,14 +21,17 @@ jobs: steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 12 - name: Compile with Grunt - uses: elstudio/actions-js-build/build@4-beta + uses: elstudio/actions-js-build/build@4 with: wdPath: './web/themes/nw8' - name: Commit changes - uses: elstudio/actions-js-build/commit@v4-beta + uses: elstudio/actions-js-build/commit@v4 with: commitMessage: Regenerate css ```