Skip to content

GitHub actions

GitHub actions #22

Workflow file for this run

name: Release preview
on: [pull_request]
jobs:
run-semantic-release-github-pr:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_BRANCH: ${{ github.head_ref }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run:
# Trick semantic-release into thinking we're not in a CI environment
unset GITHUB_ACTIONS
unset GITHUB_EVENT_NAME
- run: yarn && node ./bin/semantic-release-github-pr --debug --branches ${{ github.head_ref }}