tunnelvisionlabs / antlr4ts

Optimized TypeScript target for ANTLR 4
Other
624 stars 106 forks source link

How to release this project? #515

Open reda-alaoui opened 2 years ago

reda-alaoui commented 2 years ago

Hello,

I forked the project to upload https://github.com/tunnelvisionlabs/antlr4ts/pull/514. Now, until https://github.com/tunnelvisionlabs/antlr4ts/pull/514 is merged upstream, I want to release my fork with the fix.

Usually there is a single package.json. Here there are many of them and they are not orchestrated by a lerna like tool.

What are the steps allowing to release (i.e. build and push artifacts to npmjs & cie) the project?

reda-alaoui commented 2 years ago

Here is the script that worked for me:

#!/bin/bash

set -xe

npm run unlink
npm version prerelease --preid=alpha4cosium --git-tag-version=false --prefix tool
npm version prerelease --preid=alpha4cosium --git-tag-version=false --prefix target/src
git add .
npm version prerelease --preid=alpha4cosium --force
npm ci
npm test
npm run pack-tool
npm run pack-runtime
npm publish ./tool
npm publish ./target/src