Skip to content

Commit 31de229

Browse files
authored
chore(ci): Update workflow names + add comments (#2337)
* Update workflow names + add comments * Add npmjs registry links in publish-latest comment * Add info about "run-test" label
1 parent c6f5a36 commit 31de229

File tree

7 files changed

+47
-5
lines changed

7 files changed

+47
-5
lines changed

.github/workflows/publish-latest.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
name: Publish to latest
1+
# Description: this workflow publishes UI packages to `latest` tag on NPM.
2+
#
3+
# Triggered by: whenever "Version Packages" is merged
4+
5+
# If successful, we will publish all updated UI packages to
6+
# - https://www.npmjs.com/package/@aws-amplify/ui
7+
# - https://www.npmjs.com/package/@aws-amplify/ui-react
8+
# - https://www.npmjs.com/package/@aws-amplify/ui-vue
9+
# - https://www.npmjs.com/package/@aws-amplify/ui-angular
10+
11+
name: Test and Publish / latest
212

313
on:
414
push:
@@ -21,6 +31,13 @@ jobs:
2131
- name: Check if repo has unconsumed changesets
2232
id: has-changesets
2333
uses: ./.github/actions/has-changesets
34+
# Note: if there are no changesets, that means that either
35+
# (1) "Version Packages" PR was just merged, or
36+
# (2) no commits with changesets have been merged after packages were last published.
37+
#
38+
# In either way, we'll attempt to publish the packages. In case of (1), publish will succeed. In
39+
# case of (2), `@changesets/action` will know that UI packages have already published and will
40+
# skip publish.
2441

2542
build-test:
2643
runs-on: ubuntu-latest
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
# This workflow will run unit, e2e, and docs tests on commits to main.
1+
# Description: This workflow runs unit + e2e tests, then publishes UI packages
2+
# to `@next` NPM tag.
3+
#
4+
# Triggered by: merge to `main`
25

3-
name: Test and Publish / main
6+
name: Test and Publish / next
47

58
concurrency:
69
group: e2e-${{ github.sha }}
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# This workflow will run unit, e2e, and docs tests on commits to main.
1+
# Description: This workflow runs unit + e2e tests, then publishes UI packages
2+
# to `@studio` NPM tag.
3+
#
4+
# Triggered by: merge to `studio-release` branch
25

36
name: Test and Publish / studio
47

.github/workflows/reusable-e2e.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Description: this is a reusable workflow that runs unit and e2e tests.
2+
#
3+
# See `./test-prs.yml` to see an example usage.
4+
15
on:
26
workflow_call:
37
inputs:

.github/workflows/run-and-test-builds.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Description: this workflow runs build and simple runtime tests on supported
2+
# frameworks and their build systems.
3+
#
4+
# Triggered by: it runs every 15 minutes.
5+
16
name: Run and Test Builds
27

38
on:

.github/workflows/test-prs.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
# This workflow will run unit, e2e, and docs tests on PRs targeted against main, ui-svelte/main, ui-geo/main, and ui-react@v2 branches.
1+
# Description: This workflow runs unit + e2e tests on PRs targeting `main` and
2+
# other protected branches listed below.
3+
#
4+
# Triggered by:
5+
# (1) Internal PRs: contirubutor pushes a commit to PRs targeting protected branches.
6+
# (2) Fork PRs: maintainer adds "run-test" label to PRs targeting protected branches.
27

38
name: Test / PRs
49

.github/workflows/version-packages.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Description: this workflow creates or updates the "Version Packages" PR.
2+
#
3+
# Triggered by: whenever a commit is merged onto main and there are
4+
# new changesets to consume.
5+
16
name: Version Packages
27

38
on:

0 commit comments

Comments
 (0)