Merge branch 'develop' into features/webhooks

This commit is contained in:
Alexandre Bodin 2020-01-10 17:35:32 +01:00
commit 615f9682bc
2 changed files with 25 additions and 1 deletions

View File

@ -152,7 +152,7 @@ To do so, you will have to request the `/articles` route in **POST**.
import axios from 'axios';
const {data} = await axios
.get('http://localhost:1337/articles', {
.post('http://localhost:1337/articles', {
data: {
title: 'my article'
content: 'my super article content'

24
scripts/publish.sh Executable file
View File

@ -0,0 +1,24 @@
# Force start from root folder
cd "$(dirname "$0")/.."
set -e
version=""
echo "Please enter the version you want to publish"
read version
# publish packages
./node_modules/.bin/lerna publish --no-push --dist-tag beta --exact "$version"
# push master branch
git push origin master
# push tag
git push origin v"$version"
# set latest dist-tag on npm
lerna exec --stream --no-bail --no-private -- npm dist-tag add '${LERNA_PACKAGE_NAME}'@"$version" latest
# run changelog cli
npx @sclt/program-changelog