Skip to content

Commit

Permalink
Update CI workflow to include getting version number from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
danishjoseph committed Apr 24, 2024
1 parent b326c5c commit 88e2324
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Get version number
id: version
run: echo "VERSION= $(cat ./package.json | jq -r '.version')" >> $GITHUB_ENV

- name: Get version number
id: version
run: echo "cat ./package.json | jq -r '.version')"

- name: Install test dependencies
run: yarn install --production=false --only=dev
Expand All @@ -36,7 +44,7 @@ jobs:

- name: Get version number
id: version
run: echo "VERSION=$(cat package.json | jq -r '.version')" >> $GITHUB_ENV
run: echo "VERSION= $(cat ./package.json | jq -r '.version')" >> $GITHUB_ENV

build-and-push:
name: Build & push to DockerHub
Expand Down

0 comments on commit 88e2324

Please sign in to comment.