Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

build(deps): update semantic-release #885

build(deps): update semantic-release

build(deps): update semantic-release #885

Workflow file for this run

name: CI
on:
push:
workflow_dispatch:
env:
FORCE_COLOR: true
NODE_VERSION: 20
jobs:
setup:
name: Lint Package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-${{ hashFiles('**/yarn.lock', '.yarnrc.yml') }}
restore-keys: |
yarn-
- name: Install Dependencies
run: yarn install --immutable
- name: Run Linter
run: yarn lint
- name: Run tests
run: yarn coverage
- name: Build Package
if: success() && github.ref == 'refs/heads/develop'
run: yarn build
- name: Create Release
if: success() && github.ref == 'refs/heads/develop'
run: yarn semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}