Skip to content

chore(NOJIRA-123): update ci-standard-checks pull_request triggers #6

chore(NOJIRA-123): update ci-standard-checks pull_request triggers

chore(NOJIRA-123): update ci-standard-checks pull_request triggers #6

Workflow file for this run

name: Build
on:
pull_request:
branches:
- main
push:
branches:
- main
- beta
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
token: ${{ secrets.GH_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Get yarn cache
uses: actions/cache@v3
id: yarn-cache
with:
path: |
**/node_modules
~/.cache
key: ${{ runner.os }}-node-16-yarn-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('.github/workflows/**.yml') }}
- name: Install Node.js dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn test:unit
- run: (yarn server &) && sleep 1 && yarn test:integration
- run: yarn build
- run: yarn semantic-release
if: ${{ contains(github.ref, 'refs/heads/main') || contains(github.ref, 'refs/heads/beta') }}
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}