From 1082d3efcd93a1f1928038d26fb7f15527282516 Mon Sep 17 00:00:00 2001 From: James Ives Date: Sat, 16 May 2020 22:18:30 +0000 Subject: [PATCH 1/8] =?UTF-8?q?Release=203.5.2=20=F0=9F=93=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", From f1da4c7be115db6727a49ddaf4edb07184616828 Mon Sep 17 00:00:00 2001 From: James Ives Date: Sat, 16 May 2020 18:19:08 -0400 Subject: [PATCH 2/8] Migrates to using yarn over npm --- .github/workflows/build.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9acdc34f..2d6abb9e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,11 +16,14 @@ jobs: - name: Checkout uses: actions/checkout@v1 + - 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 From c10d475b06b20baa298a10c653679ccf49959496 Mon Sep 17 00:00:00 2001 From: James Ives Date: Sat, 16 May 2020 18:20:39 -0400 Subject: [PATCH 3/8] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a613a8ca..9a8835ba 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/github-pages-deploy-action), and the GitHub registry listing [here](https://github.com/JamesIves/github-pages-deploy-action/packages/229985). ## Configuration 📁 From e1ddd2d9a45ea582ca5d7fb84916d4b87f4f221d Mon Sep 17 00:00:00 2001 From: James Ives Date: Sat, 16 May 2020 18:23:10 -0400 Subject: [PATCH 4/8] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9a8835ba..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 registry listing for the module [here](https://www.npmjs.com/package/github-pages-deploy-action), and the GitHub registry listing [here](https://github.com/JamesIves/github-pages-deploy-action/packages/229985). +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 📁 From 8182653089ac8a20ca2a2a6dca09927eb81489cb Mon Sep 17 00:00:00 2001 From: James Ives Date: Sat, 16 May 2020 18:26:05 -0400 Subject: [PATCH 5/8] Update build.yml --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2d6abb9e..e78980cf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,11 @@ 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 From 61306020a7b2588dfca532c08f940742ddc330d2 Mon Sep 17 00:00:00 2001 From: James Ives Date: Sun, 17 May 2020 09:07:22 -0400 Subject: [PATCH 6/8] Update CONTRIBUTING.md --- CONTRIBUTING.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c95bf0b6..689cc854 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -29,6 +29,7 @@ Comment out the following in distribution branches: ``` # node_modules/ +# lib/ ``` Build the project: From dfa62dba11015b4758503f78532805aff28cc382 Mon Sep 17 00:00:00 2001 From: James Ives Date: Sun, 17 May 2020 09:15:51 -0400 Subject: [PATCH 7/8] Update CONTRIBUTING.md --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 689cc854..8ad7a3f3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -45,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 💡 From 93e7aa6ea7368dca663ae3dcb597bc5561d836e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frederik=20Hangh=C3=B8j=20Iversen?= Date: Mon, 18 May 2020 14:55:52 +0200 Subject: [PATCH 8/8] Add --no-recurse-submodules to git fetch (#299) --- src/git.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {