Skip to content

Merge pull request #81 from rodrigogs/dev #131

Merge pull request #81 from rodrigogs/dev

Merge pull request #81 from rodrigogs/dev #131

Workflow file for this run

name: Release
on:
push:
branches: [main]
permissions:
contents: write
issues: write
pull-requests: write
actions: write
jobs:
release:
name: Semantic Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "22"
cache: "npm"
- name: Install dependencies
run: |
npm ci --prefer-offline || \
npm ci --prefer-offline || \
npm ci
env:
ONNXRUNTIME_NODE_INSTALL_CUDA: skip
- name: Run Semantic Release
id: semantic
uses: cycjimmy/semantic-release-action@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Trigger Build Workflow
if: steps.semantic.outputs.new_release_published == 'true'
uses: actions/github-script@v8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'build.yml',
ref: 'main',
inputs: {
version: '${{ steps.semantic.outputs.new_release_version }}'
}
})