Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ChakshuGautam committed Jan 17, 2024
1 parent 81a1929 commit 5ccb690
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci-adapter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,26 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
- uses: npm/action-setup@v2
with:
version: 8.x.x

- uses: actions/setup-node@v3
with:
node-version: '18'
cache: pnpm
cache: npm

- name: install dependencies
run: |
cd prisma/prisma-adapter
pnpm install --frozen-lockfile
npm install --frozen-lockfile
- name: lint
run: |
cd prisma/prisma-adapter
pnpm lint
npm lint
- name: build
run: |
cd prisma/prisma-adapter
pnpm build
npm build
21 changes: 17 additions & 4 deletions .github/workflows/publish-adapter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,30 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: npm/action-setup@v2
with:
version: 8.x.x
- uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
cache: pnpm
cache: npm

- run: pnpm install --frozen-lockfile
- run: pnpm build
# Publish Adapter
- run: |
cd prisma/prisma-adapter
npm install --frozen-lockfile
- run: |
cd prisma/prisma-adapter
npm build
- run: |
cd prisma/prisma-adapter
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# Publish Database
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 5ccb690

Please sign in to comment.