From 7edfcc940496e8ca613b6b47ee00080115276ec9 Mon Sep 17 00:00:00 2001 From: Joe Baines-Holmes <3444209+bainzo@users.noreply.github.com> Date: Mon, 3 Oct 2022 22:42:27 +0100 Subject: [PATCH] Make a @brandwatch scoped fork of node-xlsx-stream Updated package.json to point to new repo and name and added a files array to only include relevant files. Also, removed some extraneous files, added a nvmrc dotfile and a GitHub Action to publish the package. --- .DS_Store | Bin 6148 -> 0 bytes .github/workflows/publish.yaml | 25 +++++++++++++++++++++++++ .github/workflows/test-on-push.yaml | 25 +++++++++++++++++++++++++ .nvmrc | 1 + a.js | 12 ------------ package.json | 13 ++++++++----- 6 files changed, 59 insertions(+), 17 deletions(-) delete mode 100644 .DS_Store create mode 100644 .github/workflows/publish.yaml create mode 100644 .github/workflows/test-on-push.yaml create mode 100644 .nvmrc delete mode 100644 a.js diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 4e315a1796083a3ea951e5289816eb7fcc02c695..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK%}T>S5T0$TZcrf?p~uB@kyfqk!9xfYJPIxJU_}!mG*Fw;r1Vgu!ME@!d>fy~ znccNmEc7O#Gcfzj&QEspL3T3$ApBX>0B`|7q7n)+)(E-RhDtVBAfmdEPQpzazy?S(1h^74Ez8C EAHv{5GXMYp diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..06c4071 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,25 @@ +name: publish + +on: + push: + branches: + - brandwatch-scoped + tags: + - 'brandwatch-[0-9]+.[0-9]+.[0-9]+*' + +jobs: + publish: + if: github.repository == 'BrandwatchLtd/node-xlsx-stream' + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v3 + - name: Pack + id: npm-pack + run: | + PACKAGE_FILE=$(npm pack --ignore-scripts) + echo "package_file=${PACKAGE_FILE}" | tee -a $GITHUB_OUTPUT + - uses: softprops/action-gh-release@v1 + with: + files: ${{ steps.npm-pack.outputs.package_file }} diff --git a/.github/workflows/test-on-push.yaml b/.github/workflows/test-on-push.yaml new file mode 100644 index 0000000..114fc3c --- /dev/null +++ b/.github/workflows/test-on-push.yaml @@ -0,0 +1,25 @@ +name: "Run test on push" + +on: + push: + paths: + - '!README.md' + - '!LICENCE' + - '!.gitignore' + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [12, 14, 16, 18] + steps: + - uses: actions/checkout@v3 + - name: Build on Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci --ignore-scripts + - run: npm test + env: + CI: true diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..1e908b8 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v12.22.9 diff --git a/a.js b/a.js deleted file mode 100644 index a1fe479..0000000 --- a/a.js +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by CoffeeScript 1.6.2 -(function() { - var a; - - a = '\ - this is a test\ - but is this?\ - test\ - test'; - console.log(JSON.stringify(a)) - -}).call(this); diff --git a/package.json b/package.json index 2b3c577..5a11a64 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { - "name": "xlsx-stream", + "name": "@brandwatch/xlsx-stream", "description": "Creates SpreadsheetML (.xlsx) files in sequence with streaming interface.", "version": "0.1.2", - "homepage": "https://github.com/nunukim/node-xlsx-stream", + "homepage": "https://github.com/brandwatchLtd/node-xlsx-stream", "author": { "name": "Ryota Suzuki", "email": "suzuki@galileoscope.com", @@ -10,18 +10,21 @@ }, "repository": { "type": "git", - "url": "git://github.com/nunukim/node-xlsx-stream.git" + "url": "git://github.com/brandwatchLtd/node-xlsx-stream.git" }, "bugs": { - "url": "https://github.com/nunukim/node-xlsx-stream/issues" + "url": "https://github.com/brandwatchLtd/node-xlsx-stream/issues" }, "licenses": [ { "type": "MIT", - "url": "https://github.com/nunukim/node-xlsx-stream/blob/master/LICENSE" + "url": "https://github.com/brandwatchLtd/node-xlsx-stream/blob/master/LICENSE" } ], "main": "lib/index.js", + "files": [ + "lib" + ], "engines": { "node": "~ 0.8.0" },