Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/prjctimg/huetiful into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
prjctimg committed Apr 6, 2024
2 parents cf1da4e + 7a6de2a commit acafdbd
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 36 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/npm-publish.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/release-please-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on:
push:
branches:
- main
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
release-type: node
# The logic below handles the npm publication:
- uses: actions/checkout@v4
# these if statements ensure that a publication only occurs when
# a new release is created:
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}
- run: npm i
if: ${{ steps.release.outputs.release_created }}
- run: |
npm test
npm run code:publish
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH}}
if: ${{ steps.release.outputs.release_created }}
5 changes: 4 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ jobs:
token: ${{ secrets.GH_PAT }}
# this is a built-in strategy in release-please, see "Action Inputs"
# for more options
release-type: node

release-type: node

release-type: node
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ All notable changes to this project will be documented in this file. See [standa
* fixed base distribution function to handle overrides with defaults ([f8c7c7c](https://github.com/xml-wizard/huetiful/commits/f8c7c7cd951bbd107fae2e686039edc40c672b45))
* fixed type errors in generators ([fce44cb](https://github.com/xml-wizard/huetiful/commits/fce44cbbe004e2cbfada167a32ad1292f7128585))

## [2.2.0](https://github.com/xml-wizard/huetiful/compare/v2.1.1...v2.2.0) (2024-03-28)


### Features

* added release-please-npm.yml workflow to publish when a new release is merged ([fce329a](https://github.com/xml-wizard/huetiful/commit/fce329a84a60b2eb44adcdb16799bb8235e33fc5))

### 2.0.0 (stable)

##### Notable changes
Expand Down Expand Up @@ -59,4 +66,4 @@ Which are similar to i.e `getNearestChroma` but take an additional against param

[npm]: https://npmjs.org/package/huetiful-js
[home]: https://prjctimg.io/huetiful
[converters]: https://prjctimg.io/huetiful/converters.html
[converters]: https://prjctimg.io/huetiful/converters.html

0 comments on commit acafdbd

Please sign in to comment.