From d7b144d8cf4686404f1c064cb94a52ea25ec3a0c Mon Sep 17 00:00:00 2001 From: Ben Stickley <35735118+bestickley@users.noreply.github.com> Date: Sun, 14 Jul 2024 20:28:39 -0400 Subject: [PATCH] fix: Major Version Release (#220) * Major Version Release * chore: self mutation Signed-off-by: github-actions --------- Signed-off-by: github-actions Co-authored-by: github-actions --- .github/workflows/release.yml | 2 +- .projen/tasks.json | 3 +-- .projenrc.ts | 18 +++++++++++++++--- package.json | 3 ++- 4 files changed, 19 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0f5ea151..5ccf9b76 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -73,7 +73,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_REPOSITORY: ${{ github.repository }} GITHUB_REF: ${{ github.ref }} - 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 da1e0233..ea6ac037 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -250,8 +250,7 @@ "description": "Prepare a release from \"main\" branch", "env": { "RELEASE": "true", - "MAJOR": "4", - "PRERELEASE": "beta" + "MAJOR": "4" }, "steps": [ { diff --git a/.projenrc.ts b/.projenrc.ts index a69d57f2..bfb3a5e5 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -34,10 +34,22 @@ const project = new awscdk.AwsCdkConstructLibrary({ name: 'cdk-nextjs-standalone', packageName: 'cdk-nextjs-standalone', majorVersion: 4, - prerelease: 'beta', + // prerelease: 'beta', minNodeVersion: '18.0.0', - description: 'Deploy a NextJS app to AWS using CDK. Uses standalone build and output tracing.', - keywords: ['nextjs', 'next', 'aws-cdk', 'aws', 'cdk', 'standalone', 'iac', 'infrastructure', 'cloud', 'serverless'], + description: 'Deploy a NextJS app to AWS using CDK and OpenNext.', + keywords: [ + 'nextjs', + 'next', + 'aws-cdk', + 'aws', + 'cdk', + 'standalone', + 'iac', + 'infrastructure', + 'cloud', + 'serverless', + 'open-next', + ], // tooling config eslintOptions: { prettier: true, diff --git a/package.json b/package.json index 82aab1f9..c61a032e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cdk-nextjs-standalone", - "description": "Deploy a NextJS app to AWS using CDK. Uses standalone build and output tracing.", + "description": "Deploy a NextJS app to AWS using CDK and OpenNext.", "repository": { "type": "git", "url": "https://github.com/jetbridge/cdk-nextjs.git" @@ -93,6 +93,7 @@ "infrastructure", "next", "nextjs", + "open-next", "serverless", "standalone" ],