Skip to content

Merge pull request #50 from storybookjs/growth/observe-indexability #160

Merge pull request #50 from storybookjs/growth/observe-indexability

Merge pull request #50 from storybookjs/growth/observe-indexability #160

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/icons'
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@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
id: app-token
with:
app-id: ${{ vars.STORYBOOK_BOT_APP_ID }}
private-key: ${{ secrets.STORYBOOK_BOT_APP_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
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@e0145edc7d9d8679003495b11f87bd8ef63c0cba # v1.5.3
with:
publish: pnpm release
commitMode: github-api
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}