diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 4e315a1..0000000 Binary files a/.DS_Store and /dev/null differ 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" },