Merge pull request #55 from raboof/npm-package-should-contain-single-folder

npm package tgz should contain a single folder
This commit is contained in:
Dmitri Sotnikov 2020-07-09 09:55:44 -04:00 committed by GitHub
commit 9924423ec2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 14 deletions

View file

@ -93,11 +93,11 @@ jobs:
env: env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: | run: |
mkdir -p target/npm-build mkdir -p target/npm-build/mastodon_bot
cp mastodon-bot.js target/npm-build/ cp mastodon-bot.js target/npm-build/mastodon_bot/
cp target/mastodon-bot.js.sha256 target/npm-build/ cp target/mastodon-bot.js.sha256 target/npm-build/mastodon_bot/
cp target/mastodon-bot.js.sha512 target/npm-build/ cp target/mastodon-bot.js.sha512 target/npm-build/mastodon_bot/
cp package.json target/npm-build/ cp package.json target/npm-build/mastodon_bot/
cp README.md target/npm-build/ cp README.md target/npm-build/mastodon_bot/
tar -cz -C target/npm-build -f target/npm-build.tgz . tar -cz -C target/npm-build -f target/npm-build.tgz .
npm publish ./target/npm-build.tgz --access public --dry-run npm publish ./target/npm-build.tgz --access public --dry-run

View file

@ -7,10 +7,10 @@ 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 target/npm-build mkdir -p target/npm-build/mastodon_bot
cp mastodon-bot.js target/npm-build/ cp mastodon-bot.js target/npm-build/mastodon_bot/
cp package.json target/npm-build/ cp package.json target/npm-build/mastodon_bot/
cp README.md target/npm-build/ cp README.md target/npm-build/mastodon_bot/
tar -cz -C target/npm-build -f target/npm-build.tgz . tar -cz -C target/npm-build -f target/npm-build.tgz .
npm publish ./target/npm-build.tgz --access public npm publish ./target/npm-build.tgz --access public
@ -32,10 +32,10 @@ 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 target/npm-build mkdir -p target/npm-build/mastodon_bot
cp mastodon-bot.js target/npm-build/ cp mastodon-bot.js target/npm-build/mastodon_bot/
cp package.json target/npm-build/ cp package.json target/npm-build/mastodon_bot/
cp README.md target/npm-build/ cp README.md target/npm-build/mastodon_bot/
tar -cz -C target/npm-build -f target/npm-build.tgz . tar -cz -C target/npm-build -f target/npm-build.tgz .
npm publish ./target/npm-build.tgz --access public npm publish ./target/npm-build.tgz --access public