Skip to content

Merge pull request #6 from storyblok/chore/dependabot-package-ecosyst… #14

Merge pull request #6 from storyblok/chore/dependabot-package-ecosyst…

Merge pull request #6 from storyblok/chore/dependabot-package-ecosyst… #14

Workflow file for this run

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