Skip to content

Commit

Permalink
Merge pull request #91 from EyeSeeTea/development
Browse files Browse the repository at this point in the history
Release 1.8.0
  • Loading branch information
adrianq authored Mar 29, 2021
2 parents 71842be + 6c9fe0b commit c25801e
Show file tree
Hide file tree
Showing 26 changed files with 53,620 additions and 17,650 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "d2-api",
"name": "@eyeseetea/d2-api",
"description": "Typed wrapper over DHIS2 API",
"version": "1.7.0",
"version": "1.8.0",
"license": "GPL-3.0",
"author": "EyeSeeTea team",
"repository": {
Expand All @@ -18,7 +18,9 @@
"lint": "eslint src --ext .js,.jsx,.ts,.tsx",
"postdist": "cp dist/index.js $npm_package_name.js",
"prettify": "prettier \"{.,src}/**/*.{js,jsx,ts,tsx,json,css}\" --write",
"generate-schemas": "ts-node src/scripts/generate-schemas.ts"
"generate-schemas": "ts-node src/scripts/generate-schemas.ts",
"prerelease": "yarn build",
"release": "bash scripts/publish.sh"
},
"dependencies": {
"@babel/runtime": "^7.5.4",
Expand Down
9 changes: 9 additions & 0 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
set -e -u -o pipefail

version=$(cat package.json | jq -r '.version')
publish_opts=$(echo $version | grep -q beta && echo "--tag beta" || true)
yarn publish $publish_opts --new-version $version build/

git tag v$version -f
git push --tags
Loading

0 comments on commit c25801e

Please sign in to comment.