-
-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (44 loc) · 1.17 KB
/
semantic-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of existdb
name: Test and Release
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
exist-version: [latest, release, 5.0.0]
services:
# Label used to access the service container
exist:
image: existdb/existdb:${{ matrix.exist-version}}
ports:
- 8080:8080
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14
uses: actions/setup-node@v1
with:
node-version: 14
- 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@v1
with:
node-version: 14
- name: Install dependencies
run: npm ci
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release