diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c54348..9695890 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d2ff24f --- /dev/null +++ b/.github/workflows/release.yml @@ -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 diff --git a/README.md b/README.md index dd91f8e..4bdbb54 100644 --- a/README.md +++ b/README.md @@ -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