From 5ccb690de29106ded60e57a2f8265b31ecf3a87e Mon Sep 17 00:00:00 2001 From: Chakshu Gautam Date: Wed, 17 Jan 2024 09:18:03 +0530 Subject: [PATCH] Fix CI --- .github/workflows/ci-adapter.yml | 10 +++++----- .github/workflows/publish-adapter.yml | 21 +++++++++++++++++---- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci-adapter.yml b/.github/workflows/ci-adapter.yml index 0c19f98..acc54c8 100644 --- a/.github/workflows/ci-adapter.yml +++ b/.github/workflows/ci-adapter.yml @@ -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 \ No newline at end of file + npm build \ No newline at end of file diff --git a/.github/workflows/publish-adapter.yml b/.github/workflows/publish-adapter.yml index ab91145..eeb93b0 100644 --- a/.github/workflows/publish-adapter.yml +++ b/.github/workflows/publish-adapter.yml @@ -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 }} \ No newline at end of file