Skip to content

Release

Release #1

Workflow file for this run

name: Release
on:
workflow_dispatch:
workflow_run:
workflows:
- Test
branches:
- alpha
- beta
- next
- main
types:
- completed
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.workflow_run.head_branch || github.ref_name }}
- name: Retrieve additional tag data
run: git fetch --tags --force
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install Packages
run: yarn install
- name: Compile the Package
run: yarn build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release