Skip to content

enter prereelase mode on next branch #70

enter prereelase mode on next branch

enter prereelase mode on next branch #70

Workflow file for this run

name: Release
on:
push:
branches:
- main
- next
jobs:
release:
permissions:
contents: write # to create release (changesets/action)
pull-requests: write # to create pull request (changesets/action)
id-token: write # required for provenance and oidc publish
# prevents this action from running on forks
if: github.repository == 'storybookjs/mcp'
name: Release
runs-on: ubuntu-latest
steps:
# see https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/making-authenticated-api-requests-with-a-github-app-in-a-github-actions-workflow
- uses: actions/create-github-app-token@v2
id: app-token
with:
app-id: ${{ vars.STORYBOOK_BOT_APP_ID }}
private-key: ${{ secrets.STORYBOOK_BOT_APP_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
- name: Setup Node.js and Install Dependencies
uses: ./.github/actions/setup-node-and-install
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: pnpm release
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}