docs(features/commander): fix 'interfere' typo (#1109) #165
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- main | |
env: | |
NX_RUN_GROUP: ${{ github.run_id }} | |
NX_CLOUD_DISTRIBUTED_EXECUTION: true | |
NX_CLOUD_AUTH_TOKEN: ${{ secrets.NX_CLOUD_TOKEN }} | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@master | |
with: | |
fetch-depth: 0 | |
- name: Derive appropriate SHAs for base and head for `nx affected` commands | |
uses: nrwl/nx-set-shas@v3 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Build Projects | |
run: pnpm build | |
- name: Modify Workspace File | |
# modify the current pnpm-workspace to point at `dist` instead of `packages` | |
run: sed -e "s|'packages\/|'dist/|" pnpm-workspace.yaml > pnpm-new.yaml && mv pnpm-new.yaml pnpm-workspace.yaml | |
- name: Create Release Pull Request or Publish to npm | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
# This expects you to have a script called release which does a build for your packages and calls changeset publish | |
publish: pnpm release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Stop Nx Cloud Agents | |
run: pnpm nx-cloud stop-all-agents | |
nx_agent: | |
runs-on: ubuntu-latest | |
name: Nx Agent | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Install Dependencies | |
run: pnpm i | |
- run: pnpm nx-cloud start-agent |