Skip to content

Merge branch 'main' of github.com:fhswf/book_me #176

Merge branch 'main' of github.com:fhswf/book_me

Merge branch 'main' of github.com:fhswf/book_me #176

Workflow file for this run

name: release
# Run the workflow when a Pull Request is opened or when changes are pushed to master
on:
pull_request:
push:
branches: [main]
#paths:
# - "common/**"
jobs:
test:
runs-on: ubuntu-latest
container:
image: cypress/included:13.5.0
options: --user 1001
strategy:
matrix:
# Run the steps below with the following versions of Node.js
node-version: [18.x]
steps:
# Fetch the latest commit
- name: Checkout
uses: actions/checkout@v4
# Setup Node.js using the appropriate version
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
# Install package dependencies
- name: Install
run: yarn install --immutable
# Build
- name: Build
run: yarn workspace common build
# Run tests
- name: Test
run: yarn workspaces foreach --all run ci
- name: Test Summary
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: |
**/TEST-*.xml
release:
# Only release on push to master
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
#needs: [test]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install
run: yarn install --immutable
- name: Build
run: yarn workspace common build
- name: Release
id: release
run: yarn exec multi-semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKER_REGISTRY_USER: ${{ github. actor }}