Skip to content

feat: add contributing guidelines and enhance README for community co… #2

feat: add contributing guidelines and enhance README for community co…

feat: add contributing guidelines and enhance README for community co… #2

Workflow file for this run

name: Release
on:
push:
branches:
- main
pull_request:
branches:
- main
types:
- closed
workflow_dispatch:
permissions:
contents: write
issues: write
pull-requests: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
# Only run on direct pushes to main or when PRs are merged
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Make scripts executable
run: chmod +x scripts/bin/*.sh
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release