@@ -1592,15 +1592,25 @@ jobs:
1592
1592
- amplify-ssh-deps-{{ .Branch }}
1593
1593
- amplify-ssh-deps
1594
1594
- run :
1595
- name : ' Post-release steps '
1595
+ name : ' Update roll-back infrastructure '
1596
1596
command : |
1597
1597
git config --global user.email $GITHUB_EMAIL
1598
1598
git config --global user.name $GITHUB_USER
1599
1599
git pull origin release
1600
- yarn workspace @aws-amplify/core build
1601
- git add ./packages/core/src/Platform/version.ts
1602
- git commit -m "chore(release): update version.ts [ci skip]"
1600
+ PUBLISH_COMMIT_HASH=$(git log -n 1 --pretty=format:"%H")
1601
+ RELEASE_COMMIT_MESSAGE=$(git log -n 1 --skip 1 --pretty=oneline)
1602
+ if [[ $RELEASE_COMMIT_MESSAGE = *release\(required\)* ]]; then git tag -f required-release $PUBLISH_COMMIT_HASH; fi
1603
+ - run :
1604
+ name : ' Update API documentation'
1605
+ command : |
1606
+ yarn run docs
1607
+ git add ./docs/api/
1608
+ git commit -m "chore(release): update API docs [ci skip]"
1609
+ - run :
1610
+ name : ' Push post release changes'
1611
+ command : |
1603
1612
git push origin release
1613
+ git push -f origin required-release
1604
1614
git push --force-with-lease origin release:main
1605
1615
1606
1616
# Specifies the branches that can be considered releasable.
@@ -2325,16 +2335,18 @@ workflows:
2325
2335
- getting-started-smoke-test/web :
2326
2336
name : Next.js - latest
2327
2337
npx-command : create-next-app
2338
+ npx-post : --use-npm --ts --tailwind --no-eslint --no-src-dir --no-app --import-alias "@/*"`
2328
2339
framework : nextjs
2329
- main-file-path : pages/_app.js
2340
+ main-file-path : pages/_app.tsx
2330
2341
dev-start : dev
2331
2342
build-dir : build
2332
2343
ssr : true
2333
2344
- getting-started-smoke-test/web :
2334
2345
name : Next.js - next
2335
2346
npx-command : create-next-app@canary
2347
+ npx-post : --use-npm --ts --tailwind --no-eslint --no-src-dir --no-app --import-alias "@/*"`
2336
2348
framework : nextjs
2337
- main-file-path : pages/_app.js
2349
+ main-file-path : pages/_app.tsx
2338
2350
dev-start : dev
2339
2351
build-dir : build
2340
2352
ssr : true
@@ -2510,7 +2522,10 @@ orbs:
2510
2522
no_output_timeout : 2m
2511
2523
- run-with-retry :
2512
2524
label : Install AmplifyJS
2513
- command : npm i -S aws-amplify && npm i -g wait-on serve
2525
+ command : |
2526
+ npm i -S aws-amplify
2527
+ npm i -g wait-on serve
2528
+ ~/amplify-js/.circleci/duplicates-npm.sh
2514
2529
- run :
2515
2530
name : Call Amplify library in code
2516
2531
command : |
0 commit comments