You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/actions/local-build/action.yml
+18-2Lines changed: 18 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -22,9 +22,25 @@ runs:
22
22
- run: npm clean-install
23
23
shell: bash
24
24
25
-
- name: npm version ${{ needs.prepare.outputs.version }}
25
+
- id: get-version-type
26
26
run: |
27
-
npm version ${{ needs.prepare.outputs.version }} \
27
+
VERSION=$(cat package.json | jq -r '.version')
28
+
29
+
if [[ "$VERSION" == *-* ]]; then echo version-type=prerelease | tee --append $GITHUB_OUTPUT; else echo version-type=production | tee --append $GITHUB_OUTPUT; fi
0 commit comments