Skip to content

fix: rework script logc #6

fix: rework script logc

fix: rework script logc #6

name: "semantic / release"
on:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
permissions:
contents: write
issues: write
pull-requests: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version-file: "package.json"
cache: "npm"
- name: Install dependencies
run: npm ci
- uses: ./.github/workflows/lint.yaml
- uses: ./.github/workflows/test.yml
- uses: ./.github/workflows/build.yaml
# If all went well, set current main branch state to release
- name: Trigger release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release