Skip to content

Release

Release #7

Workflow file for this run

name: Release
on:
workflow_dispatch:
workflow_call:
push:
paths:
- 'src/**'
- 'yarn.lock'
branches:
- 'master'
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CI: true
jobs:
Release:
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
packages: write
contents: write
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- uses: styfle/[email protected]
with:
workflow_id: release.yml
access_token: ${{ github.token }}
- uses: actions/checkout@v4
with:
fetch-depth: 30
- uses: FranzDiebold/github-env-vars-action@v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 21
- name: Yarn
run: yarn install --frozen-lockfile
- name: Test
run: |
yarn test
- name: Release
run: |
npm i -g semantic-release @semantic-release/git @semantic-release/github conventional-changelog-conventionalcommits
npx semantic-release --no-ci --debug