@@ -11,45 +11,52 @@ jobs:
11
11
uses : actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0 https://github.com/actions/checkout/commit/24cb9080177205b6e8c946b17badbe402adc938f
12
12
with :
13
13
path : amplify-js
14
- token : ${{ secrets.GH_TOKEN_AMPLIFY_JS_WRITE }}
15
14
16
15
- name : Setup node and build the repository
17
16
uses : ./amplify-js/.github/actions/node-and-build
18
17
18
+ # ##
19
+ # TODO Remove this to enable real NPM interactions.
20
+ # <remove>
21
+ - name : Load Verdaccio with AmplifyJs
22
+ uses : ./amplify-js/.github/actions/load-verdaccio-with-amplify-js
23
+ # ## </remove>
24
+
19
25
- name : Run npm publish
20
26
uses : ./amplify-js/.github/actions/npm-publish
21
27
with :
22
28
target : release
23
29
npm_token : ${{ secrets.NPM_TOKEN }}
30
+ gh_token : ${{ secrets.GITHUB_TOKEN }}
24
31
github_user : ${{ vars.GH_USER}}
25
32
github_email : ${{ vars.GH_EMAIL}}
26
33
27
- - name : Set github commit user
28
- env :
29
- GITHUB_EMAIL : ${{ vars.GH_EMAIL }}
30
- GITHUB_USER : ${{ vars.GH_USER }}
31
- run : |
32
- git config --global user.email $GITHUB_EMAIL
33
- git config --global user.name $GITHUB_USER
34
-
35
- - name : Update roll-back infrastructure
36
- working-directory : ./amplify-js
37
- run : |
38
- git pull origin release
39
- PUBLISH_COMMIT_HASH=$(git log -n 1 --pretty=format:"%H")
40
- RELEASE_COMMIT_MESSAGE=$(git log -n 1 --skip 1 --pretty=oneline)
41
- if [[ $RELEASE_COMMIT_MESSAGE = *release\(required\)* ]]; then git tag -f required-release $PUBLISH_COMMIT_HASH; fi
42
-
43
- - name : Update API documentation
44
- working-directory : ./amplify-js
45
- run : |
46
- yarn run docs
47
- git add ./docs/api/
48
- git commit -m "chore(release): update API docs [ci skip]"
49
-
50
- - name : Push post release changes
51
- working-directory : ./amplify-js
52
- run : |
53
- git push origin release
54
- if [ $(git tag -l "required-release") ]; then git push -f origin required-release; fi
55
- git push --force-with-lease origin release:main
34
+ # - name: Set github commit user
35
+ # env:
36
+ # GITHUB_EMAIL: ${{ vars.GH_EMAIL }}
37
+ # GITHUB_USER: ${{ vars.GH_USER }}
38
+ # run: |
39
+ # git config --global user.email $GITHUB_EMAIL
40
+ # git config --global user.name $GITHUB_USER
41
+
42
+ # - name: Update roll-back infrastructure
43
+ # working-directory: ./amplify-js
44
+ # run: |
45
+ # git pull origin release
46
+ # PUBLISH_COMMIT_HASH=$(git log -n 1 --pretty=format:"%H")
47
+ # RELEASE_COMMIT_MESSAGE=$(git log -n 1 --skip 1 --pretty=oneline)
48
+ # if [[ $RELEASE_COMMIT_MESSAGE = *release\(required\)* ]]; then git tag -f required-release $PUBLISH_COMMIT_HASH; fi
49
+
50
+ # - name: Update API documentation
51
+ # working-directory: ./amplify-js
52
+ # run: |
53
+ # yarn run docs
54
+ # git add ./docs/api/
55
+ # git commit -m "chore(release): update API docs [ci skip]"
56
+
57
+ # - name: Push post release changes
58
+ # working-directory: ./amplify-js
59
+ # run: |
60
+ # git push origin release
61
+ # if [ $(git tag -l "required-release") ]; then git push -f origin required-release; fi
62
+ # git push --force-with-lease origin release:main
0 commit comments