Skip to content

Commit

Permalink
use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
dumpstate committed Aug 26, 2023
1 parent 4153bf2 commit 459a476
Show file tree
Hide file tree
Showing 7 changed files with 1,543 additions and 2,934 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 8

- run: |
npm config set //registry.npmjs.org/:_authToken=${NPM_TOKEN}
npm ci
npm publish
pnpm config set //registry.npmjs.org/:_authToken=${NPM_TOKEN}
pnpm install
pnpm publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
15 changes: 7 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,22 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Start Docker Compose
run: docker-compose up -d
- name: Install Dependencies
run: |
npm config set '//npm.pkg.github.com/:_authToken' "${TOKEN}"
npm install
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm install
- name: Build
run: npm run build && npm link
run: pnpm build
- name: Apply DB Migrations
env:
PGUSER: bongo
PGHOST: localhost
PGDATABASE: bongo_db
run: bongojs migrate up
- name: Lint
run: npm run lint
run: pnpm lint
- name: Test
run: npm run test
run: pnpm test
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use-node-version=18.17.1
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

Loading

0 comments on commit 459a476

Please sign in to comment.