Skip to content

Commit

Permalink
ci: use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Aug 29, 2022
1 parent 034fb7f commit afde758
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Expand Up @@ -19,14 +19,17 @@ jobs:
with:
node-version-file: '.nvmrc'

- name: Install dependencies
run: npx ci
- name: Setup pnpm
uses: pnpm/action-setup@v2.2.2
with:
version: 7
run_install: true

- name: Lint
run: npm run lint
run: pnpm lint

- name: Release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
run: pnpx semantic-release
11 changes: 7 additions & 4 deletions .github/workflows/test.yml
Expand Up @@ -22,12 +22,15 @@ jobs:
with:
node-version-file: '.nvmrc'

- name: Install dependencies
run: npx ci
- name: Setup pnpm
uses: pnpm/action-setup@v2.2.2
with:
version: 7
run_install: true

- name: Test
run: npm test
run: pnpm test

- name: Lint
if: ${{ matrix.os == 'ubuntu-latest' }}
run: npm run lint
run: pnpm lint
7 changes: 3 additions & 4 deletions package.json
Expand Up @@ -32,10 +32,9 @@
"scripts": {
"build": "pkgroll --target=node12.19 --minify",
"lint": "eslint --cache .",
"pretest": "npm run build",
"test": "node ./dist/cli.js tests/index.ts",
"prepack": "npm run build && clean-pkg-json",
"prepublishOnly": "npm test"
"test": "pnpm build && node ./dist/cli.js tests/index.ts",
"prepack": "pnpm build && clean-pkg-json",
"prepublishOnly": "pnpm test"
},
"dependencies": {
"@esbuild-kit/cjs-loader": "^2.3.3",
Expand Down

0 comments on commit afde758

Please sign in to comment.