Skip to content

Commit

Permalink
ci: Test env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertGemmaJr committed Dec 6, 2023
1 parent 58ae43d commit 6a7beb7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/workflow-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ 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:
Expand All @@ -45,9 +48,11 @@ jobs:

# TEMP
- name: Set package name
run: cat package.json | jq -r '.name'
# run: cat package.json | jq -r '.name'
run: echo "$NAME"
- name: Set package version
run: cat package.json | jq -r '.version'
# run: cat package.json | jq -r '.version'
run: echo "$VERSION"

# - name: ⎔ Setup node
# uses: actions/setup-node@v3
Expand Down

0 comments on commit 6a7beb7

Please sign in to comment.