diff --git a/docs/3.0.0-beta.x/guides/auth-request.md b/docs/3.0.0-beta.x/guides/auth-request.md index dad2f7da93..73d880b2b7 100644 --- a/docs/3.0.0-beta.x/guides/auth-request.md +++ b/docs/3.0.0-beta.x/guides/auth-request.md @@ -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' diff --git a/scripts/publish.sh b/scripts/publish.sh new file mode 100755 index 0000000000..384f2421a6 --- /dev/null +++ b/scripts/publish.sh @@ -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