Skip to content

Commit

Permalink
ci: split release and ci
Browse files Browse the repository at this point in the history
  • Loading branch information
robby rabbitman committed Jun 29, 2024
1 parent cd0761b commit 291520d
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,3 @@ jobs:
run: nx run tools-commitlint:exec:last --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }}

- run: pnpm exec nx affected -t lint test build

- if: github.event_name == 'push'
run: pnpm exec nx release --skip-publish
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: release

on:
workflow_dispatch:

jobs:
main:
runs-on: ubuntu-latest
permissions:
actions: read
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- 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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
[![ci](https://github.com/RobbyRabbitman/nx-plus/actions/workflows/ci.yml/badge.svg?branch=main&event=push)](https://github.com/RobbyRabbitman/nx-plus/actions/workflows/ci.yml)

# nx plus

0 comments on commit 291520d

Please sign in to comment.