1
0
mirror of https://github.com/tabler/tabler.git synced 2026-01-07 21:30:06 +04:00

Switch from npm to pnpm for faster package installation (#1559)

This commit is contained in:
Paweł Kuna
2023-05-10 02:31:14 +02:00
committed by GitHub
parent 289dd3bd09
commit 8552a4621b
11 changed files with 9780 additions and 32699 deletions

View File

@@ -23,7 +23,9 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: "${{ env.NODE }}"
cache: npm
- name: Install PNPM
run: npm i -g pnpm
- name: Set up Bundler
uses: ruby/setup-ruby@v1
@@ -31,14 +33,14 @@ jobs:
ruby-version: 2.6
bundler-cache: true
- name: Install npm dependencies
run: npm install
- name: Install pnpm dependencies
run: pnpm install
- name: Run build
run: npm run build
run: pnpm run build
- name: Run bundlewatch
run: npm run bundlewatch
run: pnpm run bundlewatch
env:
BUNDLEWATCH_GITHUB_TOKEN: "${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}"
CI_BRANCH_BASE: dev

View File

@@ -22,5 +22,5 @@ jobs:
uses: xalvarez/prevent-file-change-action@v1
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
pattern: Gemfile.lock|package-lock.json
pattern: Gemfile.lock|pnpm-lock.json
trustedAuthors: codecalm, dependabot

View File

@@ -21,7 +21,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: "${{ env.NODE }}"
cache: npm
cache: pnpm
- name: Set up Ruby
uses: ruby/setup-ruby@v1
@@ -32,8 +32,8 @@ jobs:
- run: ruby --version
- run: node --version
- name: Install npm dependencies
run: npm install
- name: Install pnpm dependencies
run: pnpm install
- name: Build
run: npm run build
run: pnpm run build