Update GitHub Actions to use PNPM

pull/45/head
Nikita Karamov 2022-02-02 15:19:03 +01:00
parent 941338890e
commit c3295cc821
No known key found for this signature in database
GPG Key ID: 3C8E688C96EEB9C9
1 changed files with 12 additions and 6 deletions

View File

@ -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