Skip to content

Commit

Permalink
Release v0.0.2 (#6)
Browse files Browse the repository at this point in the history
* feat: Add npm-publish workflow

* chore: update changelog

* chore: update version
  • Loading branch information
juanpujol authored Mar 3, 2024
1 parent db9e53f commit b284056
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -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 }}
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!-- markdownlint-disable MD024 -->

# 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

<img width="1051" alt="SCR-20240303-liaw" src="https://github.com/juanpujol/polyunion/assets/30832/9652d8c1-e6f4-41cc-95f9-d79ed31c0318">
<img width="712" alt="SCR-20240303-limr" src="https://github.com/juanpujol/polyunion/assets/30832/2a901b7b-279e-4fb3-92f8-bb8daee3d8c9">

## 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.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit b284056

Please sign in to comment.