Merge pull request #56 from raboof/publish-directory-rather-than-tarball

Publish the target directory without creating our own tarball
This commit is contained in:
Dmitri Sotnikov 2020-07-09 13:19:00 -04:00 committed by GitHub
commit f55bd3108d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 15 deletions

View file

@ -99,5 +99,4 @@ jobs:
cp target/mastodon-bot.js.sha512 target/npm-build/mastodon_bot/ cp target/mastodon-bot.js.sha512 target/npm-build/mastodon_bot/
cp package.json target/npm-build/mastodon_bot/ cp package.json target/npm-build/mastodon_bot/
cp README.md 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 --access public --dry-run
npm publish ./target/npm-build.tgz --access public --dry-run

View file

@ -7,13 +7,12 @@ shadow-cljs compile test
shadow-cljs release app shadow-cljs release app
chmod a+x mastodon-bot.js chmod a+x mastodon-bot.js
rm -rf target/npm-build rm -rf target/npm-build
mkdir -p target/npm-build/mastodon_bot mkdir target/npm-build
cp mastodon-bot.js target/npm-build/mastodon_bot/ cp mastodon-bot.js target/npm-build
cp package.json target/npm-build/mastodon_bot/ cp package.json target/npm-build
cp README.md target/npm-build/mastodon_bot/ cp README.md target/npm-build
tar -cz -C target/npm-build -f target/npm-build.tgz .
npm publish ./target/npm-build.tgz --access public npm publish ./target/npm-build --access public
``` ```
## prod release (should be done from master) ## prod release (should be done from master)
@ -32,13 +31,12 @@ shadow-cljs release app
shadow-cljs release app shadow-cljs release app
chmod a+x mastodon-bot.js chmod a+x mastodon-bot.js
rm -rf target/npm-build rm -rf target/npm-build
mkdir -p target/npm-build/mastodon_bot mkdir target/npm-build
cp mastodon-bot.js target/npm-build/mastodon_bot/ cp mastodon-bot.js target/npm-build
cp package.json target/npm-build/mastodon_bot/ cp package.json target/npm-build
cp README.md target/npm-build/mastodon_bot/ cp README.md target/npm-build
tar -cz -C target/npm-build -f target/npm-build.tgz .
npm publish ./target/npm-build.tgz --access public npm publish ./target/npm-build --access public
# Bump version # Bump version
vi shadow-cljs.edn vi shadow-cljs.edn

View file

@ -2,7 +2,7 @@
"name": "mastodon-bot", "name": "mastodon-bot",
"description": "Bot to publish twitter, tumblr or rss posts to an mastodon account.", "description": "Bot to publish twitter, tumblr or rss posts to an mastodon account.",
"author": "Dmitri Sotnikov", "author": "Dmitri Sotnikov",
"version": "1.0.1", "version": "1.0.2",
"homepage": "https://github.com/yogthos/mastodon-bot", "homepage": "https://github.com/yogthos/mastodon-bot",
"repository": "https://github.com/yogthos/mastodon-bot", "repository": "https://github.com/yogthos/mastodon-bot",
"license": "MIT", "license": "MIT",