Skip to content

Commit

Permalink
ci: fix version getting
Browse files Browse the repository at this point in the history
  • Loading branch information
microshine committed Feb 22, 2022
1 parent e5ed7dd commit 29bc6ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Get Prev Version
shell: bash -ex {0}
run: |
PREV_VERSION=$(node -p 'require("./lerna.json").version')
PREV_VERSION=$(node -p 'require("./package.json").version')
echo "::set-env name=PREV_VERSION::${PREV_VERSION}"
- name: Bump version
Expand All @@ -55,7 +55,7 @@ jobs:
- name: Get Current Version
shell: bash -ex {0}
run: |
CURRENT_VERSION=$(node -p 'require("./lerna.json").version')
CURRENT_VERSION=$(node -p 'require("./package.json").version')
echo "::set-env name=CURRENT_VERSION::${CURRENT_VERSION}"
- name: Publish
Expand Down

0 comments on commit 29bc6ee

Please sign in to comment.