Skip to content

Commit

Permalink
update to use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
netbonus committed Oct 22, 2024
1 parent bf573ab commit 854ee4e
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 21 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,26 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Install NPM packages
run: npm ci
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run linter
run: npm run lint
run: pnpm run lint

- name: Run tests
run: npm run test
run: pnpm run test

- name: Build project
run: npm run build
run: pnpm run build
21 changes: 13 additions & 8 deletions .github/workflows/docs-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,27 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Install NPM packages for SDK
run: npm ci
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Install dependencies for SDK
run: pnpm install --frozen-lockfile

- name: Install NPM packages for Docs
run: npm ci
- name: Install dependencies for Docs
run: pnpm install --frozen-lockfile
working-directory: ./docs

- name: Build project
run: npm run build
run: pnpm run build
working-directory: ./docs

- name: Upload production-ready build files
Expand All @@ -41,7 +46,7 @@ jobs:

steps:
- name: Download artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: production-files
path: docs/build
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 18.x
registry-url: 'https://registry.npmjs.org'

- name: Install NPM packages
run: npm ci
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build project
run: npm run build
run: pnpm run build

- name: Publish to NPM
run: npm publish
run: pnpm publish --no-git-checks

env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 854ee4e

Please sign in to comment.