From fc0cafa286e150729648c3523cc9cf9e4ea3056a Mon Sep 17 00:00:00 2001 From: Matteo Restelli Date: Fri, 31 May 2024 06:24:57 +0200 Subject: [PATCH] feat: removing alpha prerelease (#126) Removing alpha prelease, from now on we'll just use 0.x.x versions for experimental versions --------- Signed-off-by: github-actions Co-authored-by: github-actions --- .github/workflows/release.yml | 2 +- .projen/tasks.json | 2 +- .projenrc.ts | 4 ++-- package.json | 3 ++- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bcae57c..9c16a58 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -88,7 +88,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_REPOSITORY: ${{ github.repository }} GITHUB_REF: ${{ github.sha }} - run: errout=$(mktemp); gh release create $(cat dist/releasetag.txt) -R $GITHUB_REPOSITORY -F dist/changelog.md -t $(cat dist/releasetag.txt) --target $GITHUB_REF -p 2> $errout && true; exitcode=$?; if [ $exitcode -ne 0 ] && ! grep -q "Release.tag_name already exists" $errout; then cat $errout; exit $exitcode; fi + run: errout=$(mktemp); gh release create $(cat dist/releasetag.txt) -R $GITHUB_REPOSITORY -F dist/changelog.md -t $(cat dist/releasetag.txt) --target $GITHUB_REF 2> $errout && true; exitcode=$?; if [ $exitcode -ne 0 ] && ! grep -q "Release.tag_name already exists" $errout; then cat $errout; exit $exitcode; fi release_npm: name: Publish to npm needs: release diff --git a/.projen/tasks.json b/.projen/tasks.json index 54e4fce..52c1ce3 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -258,7 +258,7 @@ "description": "Prepare a release from \"main\" branch", "env": { "RELEASE": "true", - "PRERELEASE": "alpha" + "MAJOR": "0" }, "steps": [ { diff --git a/.projenrc.ts b/.projenrc.ts index d735248..7fdf6b3 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -3,13 +3,13 @@ const project = new CdklabsConstructLibrary({ author: 'Amazon Web Services', authorAddress: 'aws-avp-cdk-dev@amazon.com', description: 'L2 AWS CDK Constructs for Amazon Verified Permissions', - keywords: ['cdk', 'aws-cdk', 'awscdk', 'aws', 'verified-permissions', 'authorization'], + keywords: ['cdk', 'aws-cdk', 'awscdk', 'aws', 'verified-permissions', 'authorization', 'verifiedpermissions'], cdkVersion: '2.139.0', defaultReleaseBranch: 'main', devDeps: ['cdklabs-projen-project-types'], name: '@cdklabs/cdk-verified-permissions', projenrcTs: true, - prerelease: 'alpha', + majorVersion: 0, stability: 'experimental', releaseToNpm: true, jsiiTargetLanguages: [JsiiLanguage.PYTHON, JsiiLanguage.JAVA, JsiiLanguage.DOTNET], diff --git a/package.json b/package.json index f4e3889..7fe0d36 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,8 @@ "aws-cdk", "awscdk", "cdk", - "verified-permissions" + "verified-permissions", + "verifiedpermissions" ], "engines": { "node": ">= 18.12.0"