Skip to content

Version compatible with exist-db 7 #58

Version compatible with exist-db 7

Version compatible with exist-db 7 #58

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Semantic Release
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
exist-version: [latest, release, 6.0.1, 5.3.0]
experimental: [false]
# latest might contain breaking changes
include:
- exist-version: latest
experimental: true
services:
# Label used to access the service container
exist:
image: existdb/existdb:${{ matrix.exist-version }}
ports:
- 8080:8080
- 8443:8443
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- run: npm ci
- run: npm start
- run: npm test
release:
name: Release
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 'lts/*'
- name: Install dependencies
run: npm ci
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release