Skip to content

Commit

Permalink
chore: move copyright footer logic to release.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
playmean committed Apr 4, 2022
1 parent e81ce89 commit 6cbec4c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
File renamed without changes.
6 changes: 0 additions & 6 deletions tools/copyright.sh

This file was deleted.

9 changes: 5 additions & 4 deletions tools/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

VERSION=$(node dist/index.min.js bump)

node dist/index.min.js patch --files package.json package-lock.json tools/copyright.txt
node dist/index.min.js patch --files package.json package-lock.json copyright.txt

sed -i '1s/^/#!\/usr\/bin\/env node\n/' dist/index.min.js

./tools/copyright.sh
for filename in ./dist/*.js
do
cat copyright.txt >> ${filename}
done

git add .
git commit -m "bump: $VERSION"

0 comments on commit 6cbec4c

Please sign in to comment.