@@ -23,54 +23,61 @@ jobs:
23
23
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
24
24
with :
25
25
path : amplify-js
26
- token : ${{ secrets.GH_TOKEN_AMPLIFY_JS_WRITE }}
26
+ # token: ${{ secrets.GH_TOKEN_AMPLIFY_JS_WRITE }}
27
27
28
28
- name : Setup node and build the repository
29
29
uses : ./amplify-js/.github/actions/node-and-build
30
30
31
+ # ##
32
+ # TODO Remove this to enable real NPM interactions.
33
+ # <remove>
34
+ - name : Load Verdaccio with AmplifyJs
35
+ uses : ./amplify-js/.github/actions/load-verdaccio-with-amplify-js
36
+ # ## </remove>
37
+
31
38
- name : Run npm publish
32
39
uses : ./amplify-js/.github/actions/npm-publish
33
40
with :
34
- target : release
41
+ target : ashwin
35
42
npm_token : ${{ secrets.NPM_TOKEN }}
36
43
github_user : ${{ vars.GH_USER}}
37
44
github_email : ${{ vars.GH_EMAIL}}
38
45
39
- - name : Set github commit user
40
- env :
41
- GITHUB_EMAIL : ${{ vars.GH_EMAIL }}
42
- GITHUB_USER : ${{ vars.GH_USER }}
43
- run : |
44
- git config --global user.email $GITHUB_EMAIL
45
- git config --global user.name $GITHUB_USER
46
+ # - name: Set github commit user
47
+ # env:
48
+ # GITHUB_EMAIL: ${{ vars.GH_EMAIL }}
49
+ # GITHUB_USER: ${{ vars.GH_USER }}
50
+ # run: |
51
+ # git config --global user.email $GITHUB_EMAIL
52
+ # git config --global user.name $GITHUB_USER
46
53
47
- - name : Update roll-back infrastructure
48
- working-directory : ./amplify-js
49
- run : |
50
- git pull origin release
51
- PUBLISH_COMMIT_HASH=$(git log -n 1 --pretty=format:"%H")
52
- RELEASE_COMMIT_MESSAGE=$(git log -n 1 --skip 1 --pretty=oneline)
53
- if [[ $RELEASE_COMMIT_MESSAGE = *release\(required\)* ]]; then git tag -f required-release $PUBLISH_COMMIT_HASH; fi
54
+ # - name: Update roll-back infrastructure
55
+ # working-directory: ./amplify-js
56
+ # run: |
57
+ # git pull origin release
58
+ # PUBLISH_COMMIT_HASH=$(git log -n 1 --pretty=format:"%H")
59
+ # RELEASE_COMMIT_MESSAGE=$(git log -n 1 --skip 1 --pretty=oneline)
60
+ # if [[ $RELEASE_COMMIT_MESSAGE = *release\(required\)* ]]; then git tag -f required-release $PUBLISH_COMMIT_HASH; fi
54
61
55
- - name : Update API documentation
56
- working-directory : ./amplify-js
57
- run : |
58
- yarn run docs
59
- git add ./docs/api/
60
- git commit -m "chore(release): update API docs [skip release]"
62
+ # - name: Update API documentation
63
+ # working-directory: ./amplify-js
64
+ # run: |
65
+ # yarn run docs
66
+ # git add ./docs/api/
67
+ # git commit -m "chore(release): update API docs [skip release]"
61
68
62
- - name : Push post release changes to the release branch
63
- working-directory : ./amplify-js
64
- run : |
65
- git push origin release
66
- if [ $(git tag -l "required-release") ]; then git push -f origin required-release; fi
69
+ # - name: Push post release changes to the release branch
70
+ # working-directory: ./amplify-js
71
+ # run: |
72
+ # git push origin release
73
+ # if [ $(git tag -l "required-release") ]; then git push -f origin required-release; fi
67
74
68
- - name : Create a PR to merge temporary release branch into main development branch
69
- working-directory : ./amplify-js
70
- env :
71
- TEMP_BRANCH_NAME : ${{ needs.deploy-prep.outputs.branch_name }}
72
- GITHUB_TOKEN : ${{ secrets.GH_TOKEN_AMPLIFY_JS_WRITE }}
73
- run : |
74
- git checkout -b $TEMP_BRANCH_NAME
75
- git push origin $TEMP_BRANCH_NAME
76
- 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.'
75
+ # - name: Create a PR to merge temporary release branch into main development branch
76
+ # working-directory: ./amplify-js
77
+ # env:
78
+ # TEMP_BRANCH_NAME: ${{ needs.deploy-prep.outputs.branch_name }}
79
+ # GITHUB_TOKEN: ${{ secrets.GH_TOKEN_AMPLIFY_JS_WRITE }}
80
+ # run: |
81
+ # git checkout -b $TEMP_BRANCH_NAME
82
+ # git push origin $TEMP_BRANCH_NAME
83
+ # 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