geostyler / geostyler-cli

BSD 2-Clause "Simplified" License
24 stars 9 forks source link

Create Semantic Releases with Binaries as Assets #348

Closed geographika closed 1 year ago

geographika commented 1 year ago

As discussed with @jansule and raised in #346 this pull request aims to add automatic semantic releases for the geostyler-cli.

The changes are mainly copied from the main geostyler project:

Some notes for reference:

Warning Babel parse has failed: import.meta may appear only with 'sourceType: "module"' (5:43) Warning Failed to make bytecode node18-x64 for file /snapshot/geostyler-cli/node_modules/ol/index.js Warning Failed to make bytecode node18-x64 for file /snapshot/geostyler-cli/node_modules/terminal-image/index.js

image

TODO:

jansule commented 1 year ago

The configuration for pkg has been added to package.json, along with the additional build commands. Strangely lots of warnings are created using this approach which are not displayed when running pkg dist/src/index.js --output geostyler.

I think I had similar warnings (but way less) on my local setup. We should take a closer look at it, but you might be right regarding removing the openlayers parser as a dependency.

dnlkoch commented 1 year ago

:tada: This PR is included in version 3.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: