Skip to content

Commit

Permalink
ECHO VARS
Browse files Browse the repository at this point in the history
  • Loading branch information
devhawk committed Feb 2, 2024
1 parent 86368b0 commit 7689a18
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,19 @@ jobs:
// builds from publication branches (dev + release) use simple version, all other branches use semantic version 1
const extensionVersion = onPublicationBranch ? SIMPLE_VERSION : SEMANTIC_VERSION_1;
// convert boolean preRelease value to integer via + operator for github expressions compatibility
core.setOutput('preRelease', +preRelease);
core.setOutput('preRelease', preRelease);
core.setOutput('extensionVersion', extensionVersion);
- name: Dump job context
env:
PRE_RELEASE: ${{ steps.relInfo.outputs.preRelease }}
EXT_VERSION: ${{ steps.relInfo.outputs.extensionVersion }}
run: echo "$PRE_RELEASE $EXT_VERSION"
- name: Pack Extension
if: ${{ steps.relInfo.outputs.preRelease == 0 }}
if: ${{ steps.relInfo.outputs.preRelease != 'true' }}
run: npx vsce pack ${{ steps.relInfo.outputs.extensionVersion }} --no-git-tag-version
- name: Pack Pre-Release Extension
if: ${{ steps.relInfo.outputs.preRelease }} != 0
if: ${{ steps.relInfo.outputs.preRelease }} == 'true'
run: npx vsce pack ${{ steps.relInfo.outputs.extensionVersion }} --no-git-tag-version --pre-release
- name: Upload Extension Artifact
uses: actions/upload-artifact@v4.3.0
Expand Down

0 comments on commit 7689a18

Please sign in to comment.