Skip to content

Commit

Permalink
ci: updated gh action to use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
kouts committed Oct 21, 2023
1 parent 2104cc6 commit 5a5aa22
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,31 @@ jobs:
node-version: ${{ matrix.node }}
check-latest: true

- name: Setup pnpm 📦
uses: pnpm/action-setup@v2
with:
version: 8.9.2

- name: Install dependencies 📦
run: npm install
run: pnpm install

- name: Install semantic-release extra plugins 📦
run: npm install --save-dev @semantic-release/changelog @semantic-release/git
run: pnpm install --save-dev @semantic-release/changelog @semantic-release/git

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

- name: Typecheck 👀
run: npm run typecheck
run: pnpm run typecheck

- name: Run tests 🧪
run: npm run test:unit --if-present
run: pnpm run test:unit --if-present

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

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
run: npx semantic-release

0 comments on commit 5a5aa22

Please sign in to comment.