Skip to content

Commit

Permalink
chore: get rid of pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
akhdrv committed Apr 14, 2023
1 parent 566607b commit c030613
Show file tree
Hide file tree
Showing 9 changed files with 21,517 additions and 11,470 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ jobs:
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
cache: 'npm'
- name: Setup packages
run: pnpm install
run: npm ci

- name: Unit tests
run: npx lerna run test
Expand All @@ -40,13 +39,12 @@ jobs:
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
cache: 'npm'
- name: Setup packages
run: pnpm install
run: npm ci

- name: Lint
run: pnpm run lint
run: npm run lint
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,23 @@ jobs:
# https://github.com/intuit/auto/issues/1030
run: git config --local --unset http.https://github.com/.extraheader

- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
cache: 'npm'
- name: Setup packages
run: pnpm install
run: npm ci

- name: Release Info
run: npm whoami && npx auto info || echo 'auto info returned 1'

- name: Create Release
run: pnpm run release
run: npm run release

- name: Update package-lock's
if: github.event_name != 'pull_request'
run: |
pnpm i --lockfile-only
npm i --workspaces --package-lock-only
- name: Extract branch name
if: github.event_name != 'pull_request'
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
node_modules
npm-debug.log
*.tsbuildinfo
package-lock.json

lib

Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useWorkspaces": true,
"version": "independent",
"npmClient": "pnpm"
"npmClient": "npm"
}
Loading

0 comments on commit c030613

Please sign in to comment.