Skip to content

Merge pull request #897 from storyblok/chore/pnpm-workspaces #1250

Merge pull request #897 from storyblok/chore/pnpm-workspaces

Merge pull request #897 from storyblok/chore/pnpm-workspaces #1250

Workflow file for this run

name: Release CI
on:
push:
branches: [main, next]
pull_request:
branches: [main, next]
env:
PNPM_CACHE_FOLDER: .pnpm-store
HUSKY: 0 # Bypass husky commit hook for CI
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Build lib
run: pnpm run build
- name: Cypress run
run: pnpm run test:e2e
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release