Skip to content

ci: lets go

ci: lets go #7

Workflow file for this run

name: release
on:
workflow_dispatch:
push:
branches:
- 'main'
jobs:
main:
if: "${{ github.event_name == 'workflow_dispatch' || !startsWith(github.event.head_commit.message, 'chore: release') }}"
runs-on: ubuntu-latest
permissions:
actions: read
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: |
git config user.email "[email protected]"
git config user.name "release"
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'
- run: pnpm i
- run: pnpm exec nx report
- run: pnpm exec nx release --skip-publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}