chore: add git and jq
Some checks failed
CI Pipeline / build-and-test (push) Successful in 1m18s
CI Pipeline / check-version (push) Successful in 12s
CI Pipeline / publish-staging (push) Failing after 13s
CI Pipeline / publish-production (push) Has been skipped
CI Pipeline / finish-deploy (push) Successful in 1s
Some checks failed
CI Pipeline / build-and-test (push) Successful in 1m18s
CI Pipeline / check-version (push) Successful in 12s
CI Pipeline / publish-staging (push) Failing after 13s
CI Pipeline / publish-production (push) Has been skipped
CI Pipeline / finish-deploy (push) Successful in 1s
This commit is contained in:
parent
fd0ef99481
commit
aa9708876a
1 changed files with 2 additions and 1 deletions
|
@ -49,7 +49,7 @@ jobs:
|
|||
check-version:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: ubuntu:latest
|
||||
image: node:20-alpine
|
||||
outputs:
|
||||
version_changed: ${{ steps.check.outputs.version_changed }}
|
||||
steps:
|
||||
|
@ -60,6 +60,7 @@ jobs:
|
|||
- name: Verificar mudança de versão no package.json
|
||||
id: check
|
||||
run: |
|
||||
apk add git jq
|
||||
OLD_VERSION=$(git show HEAD^:package.json | jq -r '.version')
|
||||
NEW_VERSION=$(jq -r '.version' package.json)
|
||||
echo "Versão anterior: $OLD_VERSION"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue