chore(deps): update dependency @sap/hana-client to v2.22.27 (#809) #442
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
name: release-please | |
jobs: | |
release-please: | |
permissions: | |
contents: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
environment: npm | |
steps: | |
- uses: googleapis/release-please-action@v4 | |
id: release | |
with: | |
token: ${{secrets.CDS_DBS_TOKEN}} | |
# The logic below handles the npm publication: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
registry-url: 'https://registry.npmjs.org' | |
# Run tests | |
- run: npm ci | |
if: ${{ steps.release.outputs.releases_created }} | |
# test sqlite/postgres/db-service | |
- run: npm test -w db-service -w sqlite -w postgres -- --maxWorkers=1 | |
if: ${{ steps.release.outputs.releases_created }} | |
# test hana | |
# TODO: Factor this setup script out | |
- name: Find HXE image | |
if: ${{ steps.release.outputs.releases_created }} | |
id: find-hxe | |
run: | | |
TAG="$(sha1sum hana/tools/docker/hxe/* | sha1sum --tag | grep '[^ ]*$' -o)"; | |
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/hanaexpress; | |
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]'); | |
echo "TAG=${TAG}" >> $GITHUB_OUTPUT; | |
echo "IMAGE_ID=${IMAGE_ID}" >> $GITHUB_OUTPUT; | |
GHCR_TOKEN=$(echo ${{ secrets.GITHUB_TOKEN }} | base64); | |
if | |
curl -H "Authorization: Bearer ${GHCR_TOKEN}" https://ghcr.io/v2/${{ github.repository_owner }}/hanaexpress/manifests/$TAG | grep "MANIFEST_UNKNOWN"; | |
then | |
echo "BUILD_HXE=true" >> $GITHUB_OUTPUT | |
else | |
echo "BUILD_HXE=false" >> $GITHUB_OUTPUT | |
fi; | |
- name: Set up Docker Buildx | |
if: ${{ steps.release.outputs.releases_created && steps.find-hxe.outputs.BUILD_HXE == 'true' }} | |
uses: docker/setup-buildx-action@v3 | |
- name: Build HXE image | |
if: ${{ steps.release.outputs.releases_created && steps.find-hxe.outputs.BUILD_HXE == 'true' }} | |
run: | | |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin; | |
DOCKER_BUILDKIT=1 docker build -t $IMAGE_ID:$TAG ./hana/tools/docker/hxe; | |
docker push $IMAGE_ID:$TAG; | |
env: | |
TAG: ${{ steps.find-hxe.outputs.TAG }} | |
IMAGE_ID: ${{ steps.find-hxe.outputs.IMAGE_ID }} | |
- name: Start HXE image | |
if: ${{ steps.release.outputs.releases_created }} | |
run: | | |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin; | |
{ npm start -w hana; } & | |
env: | |
TAG: ${{ steps.find-hxe.outputs.TAG }} | |
IMAGE_ID: ${{ steps.find-hxe.outputs.IMAGE_ID }} | |
- run: npm test -w hana -- --maxWorkers=1 | |
if: ${{ steps.release.outputs.releases_created }} | |
# Publish packages | |
- name: Publish db-service | |
if: ${{ steps.release.outputs.db-service--release_created }} | |
run: npm publish --workspace db-service --access public | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.npm_token}} | |
- name: Publish sqlite | |
if: ${{ steps.release.outputs.sqlite--release_created }} | |
run: npm publish --workspace sqlite --access public | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.npm_token}} | |
- name: Publish postgres | |
if: ${{ steps.release.outputs.postgres--release_created }} | |
run: npm publish --workspace postgres --access public | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.npm_token}} | |
- name: Publish SAP HANA | |
if: ${{ steps.release.outputs.hana--release_created }} | |
run: npm publish --workspace hana --access public | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.npm_token}} |