-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Add npm-publish workflow * chore: update changelog * chore: update version
- Loading branch information
Showing
3 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters