Skip to content

Commit 07f97eb

Browse files
Tweak ordering of publish script
1 parent d401405 commit 07f97eb

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ node_js: 'lts/*'
33
cache: yarn
44
script:
55
- yarn run ci
6+
- yarn run build

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"typecheck": "tsc",
1515
"build": "yarn clean && yarn rollup -c",
1616
"clean": "rimraf dist",
17-
"ci": "yarn lint && yarn test && yarn test:versions && yarn test:types && yarn typecheck && yarn build",
17+
"ci": "yarn lint && yarn test && yarn test:versions && yarn test:types && yarn typecheck",
1818
"prepublishOnly": "echo \"\nPlease use ./scripts/publish instead\n\" && exit 1",
1919
"prettier": "prettier './**/*.{js,ts,md,html,css}' --write",
2020
"prettier-list-different": "prettier './**/*.{js,ts,md,html,css}' --list-different"

scripts/publish

+9-3
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,17 @@ fi
121121
echo "Installing dependencies according to lockfile"
122122
yarn -s install --frozen-lockfile
123123

124-
echo "Linting, testing, and building"
124+
echo "Running tests"
125125
yarn -s run ci
126126

127-
echo "Tagging and publishing $RELEASE_TYPE release"
128-
yarn -s --ignore-scripts publish --$RELEASE_TYPE --access=public
127+
echo "Bumping package.json $RELEASE_TYPE version and tagging commit"
128+
yarn -s version --$RELEASE_TYPE
129+
130+
echo "Building"
131+
yarn -s run build
132+
133+
echo "Publishing release"
134+
yarn -s --ignore-scripts publish --non-interactive --access=public
129135

130136
echo "Pushing git commit and tag"
131137
git push --follow-tags

0 commit comments

Comments
 (0)