From b284056eb7b411f48a5dfa0c7d3fcf2877855a4b Mon Sep 17 00:00:00 2001 From: Juan Pujol Date: Sun, 3 Mar 2024 14:03:42 -0300 Subject: [PATCH] Release v0.0.2 (#6) * feat: Add npm-publish workflow * chore: update changelog * chore: update version --- .github/workflows/npm-publish.yml | 29 +++++++++++++++++++++++++++++ CHANGELOG.md | 28 ++++++++++++++++++++++++++++ package.json | 2 +- 3 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/npm-publish.yml create mode 100644 CHANGELOG.md diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000..c9ba924 --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -0,0 +1,29 @@ +name: Publish to npm + +on: + release: + types: [published] + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20.x' + + - name: Install dependencies + run: npm install + + - name: Build package + run: npm run build + + - name: Publish to npm + run: | + echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc + npm publish + env: + NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..02187df --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,28 @@ + + +# PolyUnion Changelog + +## v0.0.2 (2024-03-03) + +### Refactors & Improvements ✨ + +- Add github action to publish to npm when a new release is published +- Add github action to run unit tests #3 +- Reduce package size by importing turf modules individually #1 + +SCR-20240303-liaw +SCR-20240303-limr + +## v0.0.1 (2024-03-03) + +### First release 🚀 + +Hey! + +Just a heads-up: this is more of a test run than a ready-for-prime-time release. I'm looking to you to help me iron out the kinks and make this thing better 🙏 + +## Notes + +Gotta admit, Turf.js is a bit hefty as a dependency. Next time around, I'll be switching to individual module imports to slim things down. + +Thanks. diff --git a/package.json b/package.json index 0283e64..f32eb96 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "polyunion", - "version": "0.0.1", + "version": "0.0.2", "description": "A fast and efficient library for merging multiple polygons in a GeoJSON FeatureCollection", "main": "./dist/index.js", "module": "./dist/index.mjs",