Skip to content

Commit

Permalink
ci: move to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
sheikalthaf committed Jun 22, 2024
1 parent 20e49ba commit 65036cb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,22 @@ jobs:

strategy:
matrix:
node-version: ['18.13.0', '20']
node-version: ['20', '18.13.0']

steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
run: pnpm install
- name: Build
run: |
npx nx run-many --target=build --all
pnpx nx run-many --target=build --all
env:
CI: true
14 changes: 11 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,33 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 18.13.0
- run: npm ci
- run: pnpm install

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 18.13.0
registry-url: https://registry.npmjs.org/
scope: '@ngu'
- name: Build and Publish
run: |
npm ci
npx nx run-many --target=build --all
pnpm install
pnpx nx run-many --target=build --all
cd dist/libs/ngu/carousel
npm publish --access=public
shell: bash
Expand Down

0 comments on commit 65036cb

Please sign in to comment.