Skip to content

v2.1.0-beta.0

v2.1.0-beta.0 #139

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
permissions:
id-token: write
contents: write
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release
on:
release:
types: [released, prereleased]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
registry-url: https://registry.npmjs.org/
- name: Update npm
run: npm install -g npm@latest
- run: npm ci --package-lock
- name: deploy hana schema
id: deploySchema
run: npm run test:deploySchema
env:
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 voter:test:integration
env:
GITHUB_ACTION_HANA: true
SCHEMA_GUIDS: ${{steps.deploySchema.outputs.schemaGuids}}
HANA_DB_CREDENTIALS: ${{secrets.HANA_DB_CREDENTIALS}}
- name: Determine Release Type
id: release_type
run: |
if ${{ github.event.release.prerelease }}; then
echo "TAG=beta" >> $GITHUB_ENV
else
echo "TAG=latest" >> $GITHUB_ENV
fi
- run: npm run test:cleanSchemas
if: always()
env:
HANA_DB_CREDENTIALS: ${{secrets.HANA_DB_CREDENTIALS}}
SCHEMA_GUIDS: ${{steps.deploySchema.outputs.schemaGuids}}
- run: npm publish --access public --tag $TAG