Skip to content

v1.4.1

v1.4.1 #46

Workflow file for this run

# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
# This workflow will publish any new release to the npmjs registry
name: Publish
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release
on:
release:
types: [released]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: "unique id for hana schema"
id: generateId
run: echo "id=$(uuidgen)" >> $GITHUB_OUTPUT
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: "npm"
registry-url: https://registry.npmjs.org/
- run: npm ci --package-lock
- run: npm run test:deploySchema
env:
SCHEMA_GUID: ${{steps.generateId.outputs.id}}
HANA_DB_CREDENTIALS: ${{secrets.HANA_DB_CREDENTIALS}}
- run: npm run test:prepare
- run: npm run lint:ci
- run: npm run test:unit
- run: npm run test:integration
env:
GITHUB_ACTION_HANA: true
SCHEMA_GUID: ${{steps.generateId.outputs.id}}
HANA_DB_CREDENTIALS: ${{secrets.HANA_DB_CREDENTIALS}}
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}