Skip to content

Commit

Permalink
ci: Test workflow with set variables
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertGemmaJr committed Dec 6, 2023
1 parent 6a7beb7 commit e234155
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/workflow-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit e234155

Please sign in to comment.