From 28b9ccc31208cfcbc93e6c47000eb0eb8b93510a Mon Sep 17 00:00:00 2001 From: Ryan Block Date: Wed, 22 Nov 2023 08:38:03 -0800 Subject: [PATCH 1/3] Use `package.json` `files` instead of `.npmignore` Will now publish without a few unnecessary files --- .npmignore | 4 ---- package.json | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 .npmignore diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 6c6ade6..0000000 --- a/.npmignore +++ /dev/null @@ -1,4 +0,0 @@ -test -examples -example.js -browser diff --git a/package.json b/package.json index 534b31d..781ce4d 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,10 @@ "license": "MIT", "repository": "github:mhart/aws4", "main": "aws4.js", + "files": [ + "aws4.js", + "lru.js" + ], "scripts": { "test": "mocha ./test/fast.js -R list", "integration": "node ./test/slow.js" From 22a3604fbbe699ded36642f48c371a026f7d0026 Mon Sep 17 00:00:00 2001 From: Ryan Block Date: Wed, 22 Nov 2023 08:40:53 -0800 Subject: [PATCH 2/3] Add GitHub Actions builds --- .github/workflows/build.yml | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..198d183 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,42 @@ +name: Node CI + +on: [ push, pull_request ] + +defaults: + run: + shell: bash + +jobs: + + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + node-version: [ 14.x, 16.x, 18.x, 20.x ] + os: [ windows-latest, ubuntu-latest, macOS-latest ] + + steps: + - name: Check out repo + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Env + run: | + echo "Event name: ${{ github.event_name }}" + echo "Git ref: ${{ github.ref }}" + echo "GH actor: ${{ github.actor }}" + echo "SHA: ${{ github.sha }}" + VER=`node --version`; echo "Node ver: $VER" + VER=`npm --version`; echo "npm ver: $VER" + + - name: Install + run: npm install + + - name: Test + run: npm test + env: + CI: true From b0a0877a59ef96d5463ab6997f86e7ecd7adc1af Mon Sep 17 00:00:00 2001 From: Ryan Block Date: Wed, 22 Nov 2023 08:41:28 -0800 Subject: [PATCH 3/3] Update dev deps --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 781ce4d..f23d0db 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "integration": "node ./test/slow.js" }, "devDependencies": { - "mocha": "^2.5.3", - "should": "^8.4.0" + "mocha": "^10.2.0", + "should": "^13.2.3" } }