-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release(required): Amplify JS release (#12539)
- Loading branch information
Showing
389 changed files
with
4,749 additions
and
3,267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Release LTS version to npm and update repository | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
target: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
deploy: | ||
name: Publish to Amplify Package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0 https://github.com/actions/checkout/commit/24cb9080177205b6e8c946b17badbe402adc938f | ||
with: | ||
path: amplify-js | ||
token: ${{ secrets.GH_TOKEN_AMPLIFY_JS_WRITE }} | ||
|
||
- name: Setup node and build the repository | ||
uses: ./amplify-js/.github/actions/node-and-build | ||
|
||
- name: Run npm publish | ||
uses: ./amplify-js/.github/actions/npm-publish | ||
with: | ||
target: ${{ inputs.target }} | ||
npm_token: ${{ secrets.NPM_TOKEN }} | ||
github_user: ${{ vars.GH_USER}} | ||
github_email: ${{ vars.GH_EMAIL}} | ||
|
||
- name: Set github commit user | ||
env: | ||
GITHUB_EMAIL: ${{ vars.GH_EMAIL }} | ||
GITHUB_USER: ${{ vars.GH_USER }} | ||
run: | | ||
git config --global user.email $GITHUB_EMAIL | ||
git config --global user.name $GITHUB_USER | ||
- name: Update API documentation | ||
working-directory: ./amplify-js | ||
run: | | ||
yarn run docs | ||
git add ./docs/api/ | ||
git commit -m "chore(release): update API docs [ci skip]" | ||
- name: Push post release changes | ||
working-directory: ./amplify-js | ||
env: | ||
TARGET_BRANCH: ${{ inputs.target }} | ||
run: | | ||
git push origin $TARGET_BRANCH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Push - release from LTS branch to LTS dist tag | ||
|
||
concurrency: | ||
# group name unique for push to push-latest-release | ||
group: push-lts-release-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
push: | ||
branches: | ||
- v5-stable | ||
|
||
jobs: | ||
e2e: | ||
secrets: inherit | ||
uses: ./.github/workflows/callable-release-verification.yml | ||
release: | ||
needs: | ||
- e2e | ||
permissions: | ||
contents: write | ||
secrets: inherit | ||
uses: ./.github/workflows/callable-npm-publish-lts-release.yml | ||
with: | ||
target: v5-stable # TODO Update this to support other LTS branches in the future |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.