Skip to content

Merge pull request #179 from xeho91/chores #131

Merge pull request #179 from xeho91/chores

Merge pull request #179 from xeho91/chores #131

Workflow file for this run

name: Release
on: [push]
jobs:
release:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v4
- name: Prepare repository
run: git fetch --unshallow --tags
- name: 'Set git user'
run: |
git config --global user.name 'storybook-bot'
git config --global user.email '32066757+storybook-bot@users.noreply.github.com'
# https://nodejs.org/api/corepack.html
- name: Enable corepack (for pnpm)
run: corepack enable
# https://github.com/actions/setup-node
- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: 20
# https://pnpm.io/cli/install
- name: Install Node.js dependencies with pnpm
run: >
pnpm install
--frozen-lockfile
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
pnpm run release