Skip to content

Commit

Permalink
use pnpm/action-setup in Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
arzafran committed Jan 30, 2023
1 parent ab406cf commit b800ea8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,21 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

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

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7
run_install: false

- name: Install dependencies and build
run: npm ci
run: pnpm i --frozen-lockfile
- name: Publish package on NPM
run: npm publish
env:
Expand Down

0 comments on commit b800ea8

Please sign in to comment.