Skip to content

Commit

Permalink
Make a @brandwatch scoped fork of node-xlsx-stream
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bainzo committed Nov 23, 2022
1 parent e9ecb07 commit 7edfcc9
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 17 deletions.
Binary file removed .DS_Store
Binary file not shown.
25 changes: 25 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
25 changes: 25 additions & 0 deletions .github/workflows/test-on-push.yaml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v12.22.9
12 changes: 0 additions & 12 deletions a.js

This file was deleted.

13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
{
"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": "[email protected]",
"url": "http://galileoscope.com/"
},
"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"
},
Expand Down

0 comments on commit 7edfcc9

Please sign in to comment.