Update GitHub Actions to use PNPM
parent
941338890e
commit
c3295cc821
|
@ -20,11 +20,14 @@ jobs:
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '14'
|
node-version: '16'
|
||||||
|
- uses: pnpm/action-setup@v2.0.1
|
||||||
|
with:
|
||||||
|
version: 6.0.2
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn
|
run: pnpm i
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: yarn lint
|
run: pnpm run lint
|
||||||
|
|
||||||
build-docs:
|
build-docs:
|
||||||
name: Build and test package and deploy docs
|
name: Build and test package and deploy docs
|
||||||
|
@ -36,11 +39,14 @@ jobs:
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '14'
|
node-version: '16'
|
||||||
|
- uses: pnpm/action-setup@v2.0.1
|
||||||
|
with:
|
||||||
|
version: 6.0.2
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn
|
run: pnpm i
|
||||||
- name: Test package
|
- name: Test package
|
||||||
run: yarn test
|
run: pnpm run test
|
||||||
|
|
||||||
- name: Copy built files to docs
|
- name: Copy built files to docs
|
||||||
run: cp ./dist/shareon.min.* ./docs
|
run: cp ./dist/shareon.min.* ./docs
|
||||||
|
|
Loading…
Reference in New Issue