Skip to content

ci: fix branch path #72

ci: fix branch path

ci: fix branch path #72

Workflow file for this run

name: Release
on:
push:
branches:
- main
- next
- alpha
- beta
- "*.x"
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup variables
id: vars
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
- name: Setup Node.js
uses: actions/setup-node@v2
with:
cache: yarn
node-version: 16
cache-dependency-path: yarn.lock
- name: Install dependencies
run: yarn install
- name: Build Release
run: yarn build
- name: Build Storybook
run: yarn build:storybook
- name: Deploy GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: docs-build
target-folder: ${{ steps.vars.outputs.branch }}
clean: true
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release@19