Skip to content

Commit

Permalink
Merge pull request #86 from bmsteven/feature/test_branch
Browse files Browse the repository at this point in the history
fix getting package version via bash
  • Loading branch information
bmsteven authored Apr 25, 2022
2 parents 358b2cc + 8e2511b commit bfe79ba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ jobs:
run: npm install jq

- name: get version
run: PACKAGE_VERSION=$(cat ./package.json | jq '.version' | tr -d '"')
run: |
echo $(cat ./package.json | jq '.version' | tr -d '"')
PACKAGE_VERSION=$(cat ./package.json | jq '.version' | tr -d '"')
echo $PACKAGE_VERSION
- name: Build
run: |
Expand All @@ -41,7 +44,7 @@ jobs:
GITHUB_TOKEN: ${{secrets.TOKEN}}
SLACK_WEBHOOK_URL: ${{secrets.SLACK_WEBHOOK_URL}}
APP_NAME: Engineering-blog
PACKAGE_VERSION: "--build-arg current_version=${PACKAGE_VERSION}"
PACKAGE_VERSION: echo $(cat ./package.json | jq '.version' | tr -d '"')

- name: update develop branch
run: |
Expand Down

0 comments on commit bfe79ba

Please sign in to comment.