This repository has been archived on 2023-07-28. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon-bot/RELEASING.md
Arnout Engelen bdd6da6406
npm package tgz should contain a single folder
the npm package tgz should contain a single folder containing the package.json
and other resources. See https://docs.npmjs.com/cli/publish.

I suspect this is also the reason the README cannot be found
for https://www.npmjs.com/package/mastodon-bot/v/1.0.1
2020-07-09 09:36:31 +02:00

1.1 KiB

Releasing

dev release

shadow-cljs compile test

shadow-cljs release app
chmod a+x mastodon-bot.js
rm -rf target/npm-build 
mkdir -p target/npm-build/mastodon_bot
cp mastodon-bot.js target/npm-build/mastodon_bot/
cp package.json target/npm-build/mastodon_bot/
cp README.md target/npm-build/mastodon_bot/
tar -cz -C target/npm-build -f target/npm-build.tgz .

npm publish ./target/npm-build.tgz --access public

prod release (should be done from master)

shadow-cljs compile test

#adjust version
vi shadow-cljs.edn

git commit -am "releasing"
git tag [version]
git push && git push --tag

shadow-cljs release app

shadow-cljs release app
chmod a+x mastodon-bot.js
rm -rf target/npm-build 
mkdir -p target/npm-build/mastodon_bot
cp mastodon-bot.js target/npm-build/mastodon_bot/
cp package.json target/npm-build/mastodon_bot/
cp README.md target/npm-build/mastodon_bot/
tar -cz -C target/npm-build -f target/npm-build.tgz .

npm publish ./target/npm-build.tgz --access public

# Bump version
vi shadow-cljs.edn

git commit -am "version bump" && git push