From 493d5e5d91aebd82c0950a011b4b24c0ca9dfe44 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Sat, 19 Aug 2023 11:31:17 -0400 Subject: [PATCH 1/5] Add CI --- .github/workflows/CI.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/CI.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 00000000..2545709b --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,22 @@ +name: Node.js CI + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js 8.17.0 + uses: actions/setup-node@v3 + with: + node-version: 8.17.0 + cache: 'npm' + - run: npm ci + - run: npm run build From 62ed188f5413d31afcec77fdc1ac0505653c33b4 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Sat, 19 Aug 2023 11:32:03 -0400 Subject: [PATCH 2/5] Update branch --- .github/workflows/CI.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 2545709b..315e4851 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -2,9 +2,9 @@ name: Node.js CI on: push: - branches: [ $default-branch ] + branches: [master] pull_request: - branches: [ $default-branch ] + branches: [master] jobs: build: From 77d77f70e64002af3f03797370e3e13693215f30 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Sat, 19 Aug 2023 11:33:51 -0400 Subject: [PATCH 3/5] Remove separate build step for now --- .github/workflows/CI.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 315e4851..e1c1da09 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -19,4 +19,3 @@ jobs: node-version: 8.17.0 cache: 'npm' - run: npm ci - - run: npm run build From 85d08a06ad407a5c080d47c3e3316bac9aebbe44 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Sat, 19 Aug 2023 11:52:28 -0400 Subject: [PATCH 4/5] Use prepublishOnly --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 04e5b313..0f2b372e 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "bump": "gulp bump", "test": "nyc mocha", "watch": "nodemon --exec \"mocha\"", - "prepublish": "npm run build && npm run build-dist", + "prepublishOnly": "npm run build && npm run build-dist", "cover-report": "open coverage/lcov-report/index.html", "cover-publish": "nyc mocha && codeclimate < coverage/lcov.info" }, From 5c31368e2db3699f9a853eb3c5ee018f4ac92bcb Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Sat, 19 Aug 2023 11:52:36 -0400 Subject: [PATCH 5/5] Update lock file --- package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 62bac99d..83b752ec 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "jsondiffpatch", - "version": "0.3.11", + "version": "0.4.1", "lockfileVersion": 1, "requires": true, "dependencies": {