Skip to content

Commit

Permalink
ci: standardize the methods and pmpn usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcdo29 committed Oct 11, 2021
1 parent ae0fdab commit 15525f5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Install pnpm
run: npm i -g pnpm
- name: Install deps
run: pnpm i --frozen-lockfile=false
run: pnpm i
- name: Lint
run: pnpm lint
- name: Build Projects
Expand All @@ -57,7 +57,7 @@ jobs:
- name: Install pnpm
run: npm i -g pnpm
- name: Install deps
run: pnpm i --frozen-lockfile=false
run: pnpm i
- name: Lint
run: pnpm lint
- name: Build Projects
Expand Down Expand Up @@ -113,6 +113,6 @@ jobs:
- name: Install pnpm
run: npm i -g pnpm
- name: Install deps
run: pnpm i --frozen-lockfile=false
run: pnpm i
- name: Start Nx Agent ${{ matrix.agent }}
run: pnpm nx-cloud start-agent
2 changes: 1 addition & 1 deletion .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Install pnpm
run: npm i -g pnpm
- name: Dependencies Install
run: pnpm i --frozen-lockfile=false
run: pnpm i
- name: Build Docs
run: pnpm nx build docs
- uses: webfactory/ssh-agent@v0.5.3
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@master
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v2
Expand All @@ -32,7 +31,7 @@ jobs:
run: npm i -g pnpm

- name: Install Dependencies
run: pnpm i --frozen-lockfile=false
run: pnpm i

- name: Build Projects
run: pnpm build
Expand All @@ -52,7 +51,7 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Stop Nx Cloud Agents
run: pnpx -y nx-cloud stop-all-agents
run: pnpm -y nx-cloud stop-all-agents

nx_agent:
runs-on: ubuntu-latest
Expand All @@ -67,5 +66,5 @@ jobs:
run: npm i -g pnpm

- name: Install Dependencies
run: pnpm i --frozen-lockfile=false
- run: npx nx-cloud start-agent
run: pnpm i
- run: pnpm nx-cloud start-agent
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"version": "0.0.0",
"description": "A module for making CLI applications with NestJS. Decorators for running commands and separating out config parsers included. This package works on top of commander.",
"scripts": {
"build": "nx affected:build --with-deps --parallel",
"test": "nx affected:test",
"build": "nx affected:build --parallel",
"lint": "eslint --ext .ts .",
"format": "prettier \"{packages,integration}/**/{src,test}/*.ts\"",
"format:check": "pnpm format -- --check",
Expand Down

0 comments on commit 15525f5

Please sign in to comment.