Skip to content

ci(config): updates composite.release config (#69) #2

ci(config): updates composite.release config (#69)

ci(config): updates composite.release config (#69) #2

name: Release
permissions:
pull-requests: write
contents: write
id-token: write
on:
workflow_call:
push:
branches:
- main
- alpha
- beta
- canary
- pre/rc
jobs:
release:
runs-on: ubuntu-latest
if: |
(
github.event_name == 'push' &&
(
github.ref == 'refs/heads/main' ||
github.ref == 'refs/heads/alpha' ||
github.ref == 'refs/heads/beta' ||
github.ref == 'refs/heads/canary' ||
github.ref == 'refs/heads/pre/rc'
)
) ||
(
github.event_name == 'pull_request' &&
(
github.base_ref == 'main' ||
github.base_ref == 'alpha' ||
github.base_ref == 'beta' ||
github.base_ref == 'canary' ||
github.base_ref == 'pre/rc'
)
)
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Install
uses: kurocado-studio/styleguide/.github/actions/install@main
- name: Build
run: pnpm run build
- name: Release
id: semantic_release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}