Skip to content

Commit

Permalink
Fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Skelton committed Jan 18, 2022
1 parent 91fa57a commit addf402
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"format": "prettier --write .",
"lint": "eslint .",
"test": "jest",
"ts": "tsc -b"
"ts": "tsc -b",
"release": "./scripts/release.sh"
},
"devDependencies": {
"@babel/core": "^7.16.7",
Expand Down
10 changes: 10 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -eo pipefail

if [[ -z "${CI}" ]]; then
echo "Releasing is only allowed from CI."
exit 1
fi

yarn tsc -p tsconfig.build.json
yarn changeset publish

0 comments on commit addf402

Please sign in to comment.