Skip to content

Merge pull request #846 from storyblok/chore/enable-next-auto-releases #76

Merge pull request #846 from storyblok/chore/enable-next-auto-releases

Merge pull request #846 from storyblok/chore/enable-next-auto-releases #76

Workflow file for this run

name: Release CI
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
on:
push:
branches: [main, next, beta]
pull_request:
branches: [main, next, beta]
jobs:
publish:
name: Publish to npm
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install
run: npm install
- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx [email protected]