Skip to content

Commit d319b2a

Browse files
committed
move step upper for get version
1 parent a3f1f61 commit d319b2a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/cd.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ jobs:
2121
steps:
2222
- name: Checkout
2323
uses: actions/checkout@v3
24+
# https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions
25+
- name: Get release version
26+
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter
27+
run: echo "version=${GITHUB_REF#refs/*/}" >> "$GITHUB_OUTPUT"
28+
id: release-version
2429
- name: Install Node.js
2530
uses: actions/setup-node@v3
2631
with:
@@ -31,11 +36,6 @@ jobs:
3136
run: npm run build
3237
- name: Build checksum
3338
run: sha512sum confluence-markup-${{ steps.release-version.outputs.version }}.vsix > confluence-markup-${{ steps.release-version.outputs.version }}.vsix.sha512
34-
# https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions
35-
- name: Get release version
36-
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter
37-
run: echo "version=${GITHUB_REF#refs/*/}" >> "$GITHUB_OUTPUT"
38-
id: release-version
3939
- name: Create release notes for version ${{ steps.release-version.outputs.version }}
4040
# run: npm run --silent changelog > RELEASE_NOTES_${{ steps.release-version.outputs.version }}.md
4141
run: |

0 commit comments

Comments
 (0)