From e2341559cf90f57524753eb5c8a9e96fe46c8585 Mon Sep 17 00:00:00 2001 From: RobertGemmaJr Date: Wed, 6 Dec 2023 12:56:55 -0500 Subject: [PATCH] ci: Test workflow with set variables --- .github/workflows/workflow-package.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/workflow-package.yml b/.github/workflows/workflow-package.yml index 0eea120d7..9838840d7 100644 --- a/.github/workflows/workflow-package.yml +++ b/.github/workflows/workflow-package.yml @@ -27,9 +27,6 @@ jobs: package-and-upload: name: Package and Upload runs-on: ${{ matrix.os }} - env: - NAME: cat package.json | jq -r '.name' - VERSION: cat package.json | jq -r '.version' # Run action for [home/clinic] in [windows/macOS/ubuntu] based on user input strategy: @@ -49,10 +46,13 @@ jobs: # TEMP - name: Set package name # run: cat package.json | jq -r '.name' - run: echo "$NAME" + run: echo "NAME=$(cat package.json | jq -r '.name')" >> $GITHUB_ENV" - name: Set package version # run: cat package.json | jq -r '.version' - run: echo "$VERSION" + run: echo "VERSION=$(cat package.json | jq -r '.version')" >> $GITHUB_ENV" + + - run: echo $NAME + - run: echo $VERSION # - name: ⎔ Setup node # uses: actions/setup-node@v3