|
16 | 16 |
|
17 | 17 | deploy: |
18 | 18 | name: Publish to Amplify Package |
19 | | - runs-on: ubuntu-latest |
20 | 19 | needs: deploy-prep |
| 20 | + secrets: inherit |
| 21 | + uses: ./.github/workflows/callable-npm-publish-trusted.yml |
| 22 | + with: |
| 23 | + target: release |
| 24 | + github_user: ${{ vars.GH_USER}} |
| 25 | + github_email: ${{ vars.GH_EMAIL}} |
| 26 | + |
| 27 | + post-deploy: |
| 28 | + name: Post-deployment tasks |
| 29 | + runs-on: ubuntu-latest |
| 30 | + needs: [deploy-prep, deploy] |
21 | 31 | steps: |
22 | 32 | - name: Checkout repository |
23 | 33 | uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 |
|
27 | 37 | # Minimal depth 0 so we can fetch all git tags. |
28 | 38 | fetch-depth: 0 |
29 | 39 |
|
30 | | - - name: Setup node and build the repository |
31 | | - uses: ./amplify-js/.github/actions/node-and-build |
32 | | - |
33 | | - - name: Run npm publish |
34 | | - uses: ./amplify-js/.github/actions/npm-publish |
35 | | - with: |
36 | | - target: release |
37 | | - npm_token: ${{ secrets.NPM_TOKEN }} |
38 | | - github_user: ${{ vars.GH_USER}} |
39 | | - github_email: ${{ vars.GH_EMAIL}} |
40 | | - |
41 | 40 | - name: Set github commit user |
42 | 41 | env: |
43 | 42 | GITHUB_EMAIL: ${{ vars.GH_EMAIL }} |
|
54 | 53 | RELEASE_COMMIT_MESSAGE=$(git log -n 1 --skip 1 --pretty=oneline) |
55 | 54 | if [[ $RELEASE_COMMIT_MESSAGE = *release\(required\)* ]]; then git tag -f required-release $PUBLISH_COMMIT_HASH; fi |
56 | 55 |
|
| 56 | + - name: Setup node for docs generation |
| 57 | + uses: ./amplify-js/.github/actions/node-and-build |
| 58 | + |
57 | 59 | - name: Update API documentation |
58 | 60 | working-directory: ./amplify-js |
59 | 61 | run: | |
|
75 | 77 | run: | |
76 | 78 | git checkout -b $TEMP_BRANCH_NAME |
77 | 79 | git push origin $TEMP_BRANCH_NAME |
78 | | - gh pr create -B main -H $TEMP_BRANCH_NAME --title 'chore: Merge release into main' --body 'Merge the recently completed release back into the main development branch. Generated by the callable-npm-publish-release workflow.' |
| 80 | + gh pr create -B main -H $TEMP_BRANCH_NAME --title 'chore: Merge release into main' --body 'Merge the recently completed release back into the main development branch. Generated by the callable-npm-publish-release workflow.' |
0 commit comments