chore: Match package version to latest tagged version

This commit is contained in:
Clare Liguori
2020-02-03 18:00:01 -08:00
parent a8ef869f65
commit adc64e45b8
4 changed files with 31 additions and 2 deletions
+2
View File
@@ -22,3 +22,5 @@ phases:
# Run integration tests
- ./run_integ_test.sh
finally:
- rm .git/credentials
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "aws-actions-configure-aws-credentials",
"version": "0.0.0",
"version": "1.0.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "aws-actions-configure-aws-credentials",
"version": "0.0.0",
"version": "1.0.1",
"description": "Configure AWS Credentials",
"main": "index.js",
"scripts": {
+27
View File
@@ -0,0 +1,27 @@
#!/bin/bash
set -ex
# Generate a new version number and version tag, based on conventional commits
standard-version
# Prevent major version bumps: these warrant extra scrutiny
NEW_VERSION=`cat package-lock.json | jq -r '.version'`
if [[ ! "$NEW_VERSION" =~ ^v1\. ]]; then
echo "New major version! $NEW_VERSION"
exit 1
fi
# Push the new version tag
git push --follow-tags origin master
# Create a GitHub release for the new version
dpl --provider=releases \
--name="v$NEW_VERSION" \
--tag_name="v$NEW_VERSION" \
--api_key="$GITHUB_TOKEN" \
--draft=$IS_DRAFT
# Update the 'v1' tag to point to the new version
git tag -f v1
git push -f origin v1