diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9acdc34f..e78980cf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,11 +16,19 @@ jobs: - name: Checkout uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: '10.15.1' + registry-url: 'https://registry.npmjs.org' + + - name: Install Yarn + run: npm install -g yarn + - name: Install and Test run: | - npm install - npm run-script lint - npm run-script test + yarn install + yarn lint + yarn test - name: Uploade CodeCov Report uses: codecov/codecov-action@v1 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c95bf0b6..8ad7a3f3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -29,6 +29,7 @@ Comment out the following in distribution branches: ``` # node_modules/ +# lib/ ``` Build the project: @@ -44,7 +45,7 @@ $ git checkout -b branchnamehere $ git commit -a -m "prod dependencies" ``` -The `node_modules` folder should _not_ be included when making a pull request. These are only required for GitHub Actions when it consumes the distribution branch, the `dev` branch of the project should be free from any dependencies or lib files. +The `node_modules` and `lib` folders should _not_ be included when making a pull request. These are only required for GitHub Actions when it consumes the distribution branch, the `dev` branch of the project should be free from any dependencies or lib files. ## Resources 💡 diff --git a/README.md b/README.md index a613a8ca..428ee369 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ run({ }); ``` -For more information regarding the [action interface please click here](https://github.com/JamesIves/github-pages-deploy-action/blob/dev/src/constants.ts#L7). You can find the npm listing for the module [here](https://www.npmjs.com/package/github-pages-deploy-action). +For more information regarding the [action interface please click here](https://github.com/JamesIves/github-pages-deploy-action/blob/dev/src/constants.ts#L7). You can find the npm registry listing for the module [here](https://www.npmjs.com/package/@jamesives/github-pages-deploy-action), and the GitHub registry listing [here](https://github.com/JamesIves/github-pages-deploy-action/packages/229985). ## Configuration 📁 diff --git a/package.json b/package.json index 26099656..bfb2ad01 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@jamesives/github-pages-deploy-action", "description": "GitHub action for building a project and deploying it to GitHub pages.", "author": "James Ives (https://jamesiv.es)", - "version": "3.5.1", + "version": "3.5.2", "license": "MIT", "main": "lib/lib.js", "types": "lib/lib.d.ts", diff --git a/src/git.ts b/src/git.ts index b949f95d..347e1454 100644 --- a/src/git.ts +++ b/src/git.ts @@ -24,7 +24,7 @@ export async function init(action: ActionInterface): Promise { `git remote add origin ${action.repositoryPath}`, action.workspace ) - await execute(`git fetch`, action.workspace) + await execute(`git fetch --no-recurse-submodules`, action.workspace) info('Git configured… 🔧') } catch (error) {