Make sure in package.json
file that you are pointing out to the right versions
"version": "x.y.z",
"wollokVersion": "a.b.c",
And CHANGELOG.md
should be up to date with latest changes.
These values should be ok, since it is expected to be updated by previous PRs.
Go to wollok-ts
root folder
git checkout master
Be sure you have no local changes:
git status
Go to language
subfolder from wollok-ts
, confirm you have no local changes:
cd language
git status
After that you should remove language
directory and re-checkout it:
cd ..
rm -rf language
npm i
npm i
will checkout the version
You must have an npm account with 2FA set, then you can type the following command:
npm adduser
Your user must be added to wollok-ts
project in npm. For example, check this page and you should appear in maintainers list.
Run this command:
npm publish
It will run all tests and also publish existing version to NPM.
Go to package.json
and increment the new version value. For example, if version was “2.9.1” you should change it to “2.9.2”. Commit & push.