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

Merge pull request #47 from storybookjs/yann/fix-cjs-interop #83

Merge pull request #47 from storybookjs/yann/fix-cjs-interop

Merge pull request #47 from storybookjs/yann/fix-cjs-interop #83

Workflow file for this run

name: Release
on:
pull_request:
push:
branches:
- main
- next
jobs:
release:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: actions/checkout@v3
- name: Prepare repository
run: git fetch --unshallow --tags
- name: Install Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install Yarn
run: corepack enable
# Yarn dependencies cannot be cached until yarn is installed
# WORKAROUND: https://github.com/actions/setup-node/issues/531
- name: Extract cached dependencies
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'yarn'
- name: Install dependencies
run: corepack yarn
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
yarn release