7171 id : version
7272 run : |
7373 SHA=${{ github.event.pull_request.head.sha }}
74- echo "::set-output name= sha:: ${SHA::7}"
75- echo "::set-output name= branch:: ${GITHUB_HEAD_REF//[^a-zA-Z0-9-]/-}"
74+ echo "sha= ${SHA::7}" >> $GITHUB_OUTPUT
75+ echo "branch= ${GITHUB_HEAD_REF//[^a-zA-Z0-9-]/-}" >> $GITHUB_OUTPUT
7676
7777 - name : Set package version
7878 id : build
@@ -83,31 +83,19 @@ jobs:
8383 ATTEMPT : ${{ github.run_attempt }}
8484 run : |
8585 node ci.js bump-version ${{ env.BRANCH }}-${{ env.SHA }}-${{ env.RUN }}-${{ env.ATTEMPT }}
86- echo "::set-output name= version:: $(node ci.js get-version)"
86+ echo "version= $(node ci.js get-version)" >> $GITHUB_OUTPUT
8787
8888 - name : Publish to self-hosted npm repo
8989 run : pnpm --no-git-checks --registry https://npm.fluence.dev -r publish --tag e2e -filter '@fluencelabs/*'
9090
91- - name : Find comment in PR
92- uses : peter-evans/find-comment@v1
93- id : comment
94- with :
95- issue-number : " ${{ github.event.pull_request.number }}"
96- comment-author : github-actions[bot]
97- body-includes : " ## FluenceJS version is"
98-
99- - name : Update comment in PR
100- uses : peter-evans/create-or-update-comment@v1
91+ - name : Print versions to check summary
10192 env :
102- FLUENCE_JS_VERSION : ${{ steps.build.outputs.version }}
103- with :
104- comment-id : " ${{ steps.comment.outputs.comment-id }}"
105- issue-number : " ${{ github.event.pull_request.number }}"
106- edit-mode : replace
107- body : |
108- ## FluenceJS version is [${{ env.FLUENCE_JS_VERSION }}](https://npm.fluence.dev/-/web/detail/@fluencelabs/fluence/v/${{ env.FLUENCE_JS_VERSION }})
109- To install it run:
110- ```shell
111- npm login --registry https://npm.fluence.dev
112- npm i -E @fluencelabs/fluence@${{ env.FLUENCE_JS_VERSION }} --registry=https://npm.fluence.dev
113- ```
93+ VERSION : ${{ steps.build.outputs.version }}
94+ run : |
95+ cat <<'SNAPSHOT' >> $GITHUB_STEP_SUMMARY
96+ ## FluenceJS version is [${{ env.VERSION }}](https://npm.fluence.dev/-/web/detail/@fluencelabs/fluence/v/${{ env.VERSION }})
97+ To use it run:
98+ ```shell
99+ npm i -E @fluencelabs/fluence@${{ env.VERSION }} --registry=https://npm.fluence.dev
100+ ```
101+ SNAPSHOT
0 commit comments