mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-08-23 04:15:08 +09:00
chore: Match package version to latest tagged version
This commit is contained in:
@@ -22,3 +22,5 @@ phases:
|
||||
|
||||
# Run integration tests
|
||||
- ./run_integ_test.sh
|
||||
finally:
|
||||
- rm .git/credentials
|
||||
|
||||
Generated
+1
-1
@@ -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
@@ -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
@@ -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
|
||||
Reference in New Issue
Block a user