Skip to content

Commit

Permalink
fix(ref: 1440): add version lib version to slack
Browse files Browse the repository at this point in the history
  • Loading branch information
andriikamaldinov1 committed Nov 1, 2024
1 parent faaaebc commit d7faab3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 22 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ jobs:
run: bun publish:lib
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
- name: Extract version
id: get_version
run: |
VERSION=$(node -p "require('./dist/ngx-mask-lib/package.json').version")
echo "version=$VERSION" >> $GITHUB_OUTPUT
slack_notification:
needs:
Expand Down
13 changes: 1 addition & 12 deletions .github/workflows/quality-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,4 @@ jobs:
- name: Check quality
run: |
bun i
bash .github/workflows/scripts/quality.sh
- name: Extract version
id: get_version
run: |
VERSION=$(node -p "require('./dist/ngx-mask-lib/package.json').version")
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Use version
env:
VERSION: ${{ steps.get_version.outputs.version }}
run:
echo $VERSION
bash .github/workflows/scripts/quality.sh
20 changes: 10 additions & 10 deletions .github/workflows/scripts/quality.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ bun lint
# run snyk:auth -- $snyk_token
# bun run snyk:test

#output=$(bun run type-coverage)
#if echo "$output" | grep -q "lower than "; then
# echo "$output"
# exit 1 # Terminate the hook script with a non-zero exit code
#else
# echo "Type coverage is good! 🎉"
#fi
#
#bun run test
#bun run cypress:bash
output=$(bun run type-coverage)
if echo "$output" | grep -q "lower than "; then
echo "$output"
exit 1 # Terminate the hook script with a non-zero exit code
else
echo "Type coverage is good! 🎉"
fi

bun run test
bun run cypress:bash

bun run build

Expand Down

0 comments on commit d7faab3

Please sign in to comment.