Skip to content

ci: add tests before release dev #22

ci: add tests before release dev

ci: add tests before release dev #22

Workflow file for this run

name: Release
on:
push:
branches:
- main
- dev
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: pnpm i
- name: Run Tests
run: pnpm run lib:test
- name: Install dependencies
run: pnpm run lib:build
- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm run lib:release