2022-04-16 17:02:30 +02:00
|
|
|
|
|
|
|
name: Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: Release
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-04-16 17:29:05 +02:00
|
|
|
uses: actions/checkout@v3
|
2022-04-16 17:02:30 +02:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Setup Node.js
|
2022-04-16 17:29:08 +02:00
|
|
|
uses: actions/setup-node@v3
|
2022-04-16 17:02:30 +02:00
|
|
|
with:
|
2022-04-17 19:05:11 +02:00
|
|
|
node-version: 16.14.0
|
2022-04-16 17:02:30 +02:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: npm ci
|
|
|
|
|
|
|
|
- name: Run tests
|
|
|
|
run: npm run test
|
|
|
|
|
|
|
|
- name: Release
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
run: npm run semantic-release
|