File: version.sh

package info (click to toggle)
node-lolex 5.1.2%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 800 kB
  • sloc: sh: 32; makefile: 10
file content (20 lines) | stat: -rwxr-xr-x 441 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
set -e
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$SCRIPT_DIR/.." > /dev/null

PACKAGE_VERSION=$(node -p -e "require('./package.json').version")

echo 'Updating CHANGELOG.md'
git changelog --no-merges
git add CHANGELOG.md

echo 'Updating AUTHORS'
git authors --list > AUTHORS
git add AUTHORS

echo 'Build bundle'
npm run bundle
git add lolex.js

git commit -m "Updated release files for $PACKAGE_VERSION"