Skip to content

Simplify symbolic link fix for cds-test #438

Simplify symbolic link fix for cds-test

Simplify symbolic link fix for cds-test #438

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: 20
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
if: ${{ steps.release.outputs.releases_created }}
# test hana
- id: hxe
if: ${{ steps.release.outputs.releases_created }}
uses: ./.github/actions/hxe
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm test -w hana
if: ${{ steps.release.outputs.releases_created }}
TAG: ${{ steps.hxe.outputs.TAG }}

Check failure on line 39 in .github/workflows/release-please.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release-please.yml

Invalid workflow file

You have an error in your yaml syntax on line 39
IMAGE_ID: ${{ steps.hxe.outputs.IMAGE_ID }}
# 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}}