@@ -12,24 +12,41 @@ jobs:
1212 with :
1313 path : amplify-js
1414
15- - name : Setup node and build the repository
16- uses : ./amplify-js/.github/actions/node-and-build
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-
25- - name : Run npm publish
26- uses : ./amplify-js/.github/actions/npm-publish
27- with :
28- target : release
29- npm_token : ${{ secrets.NPM_TOKEN }}
30- gh_token : ${{ secrets.GITHUB_TOKEN }}
31- github_user : ${{ vars.GH_USER}}
32- github_email : ${{ vars.GH_EMAIL}}
15+ - name : testing aws-amplify version
16+ working-directory : ./amplify-js
17+ run : |
18+ npm install -g lerna
19+ lerna list --json | jq -r '.[] | select(.name=="aws-amplify") | .version'
20+ echo "aws-amplify-prev-version=$(lerna list --json | jq -r '.[] | select(.name == "aws-amplify") | .version')" >> $GITHUB_ENV
21+ echo "The version of 'aws-amplify' is $aws-amplify-prev-version"
22+
23+ # - name: Setup node and build the repository
24+ # uses: ./amplify-js/.github/actions/node-and-build
25+
26+ # ###
27+ # # TODO Remove this to enable real NPM interactions.
28+ # # <remove>
29+ # - name: Load Verdaccio with AmplifyJs
30+ # uses: ./amplify-js/.github/actions/load-verdaccio-with-amplify-js
31+ # ### </remove>
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+ # gh_token: ${{ secrets.GITHUB_TOKEN }}
39+ # github_user: ${{ vars.GH_USER}}
40+ # github_email: ${{ vars.GH_EMAIL}}
41+
42+ # - name: Run gh release
43+ # uses: ./.github/workflows/callable-gh-publish-release.yml
44+ # with:
45+ # newTag: ubuntu-latest
46+ # previousTag: ubuntu-latest
47+ # gh_token: ${{ secrets.GITHUB_TOKEN }}
48+
49+ # ################################################################################################################
3350
3451 # - name: Set github commit user
3552 # env:
0 commit comments