Skip to content

Commit

Permalink
feat(main): ✨ moved to pnpm from yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
spa5k committed Jan 3, 2023
1 parent d331a71 commit f131875
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 21 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
name: Release

# Run the workflow when a Pull Request is opened or when changes are pushed to master
on:
push:
branches:
Expand All @@ -16,21 +14,22 @@ jobs:
name: Node.js ${{ matrix.node }}

steps:
- uses: actions/checkout@v3

- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.0.1
with:
version: 6.24.4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
- name: Install yarn latest
run: yarn set version berry && yarn set version latest
cache: "pnpm"
- name: Install deps
run: yarn
run: pnpm install
- name: Build
run: yarn build
run: pnpm build

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn run semantic-release
run: pnpm semantic-release
23 changes: 13 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,28 @@ on:
jobs:
runner-job:
runs-on: ubuntu-latest
env:
NODE_ENV: production

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [16.x, 18.x, 19.x]

name: Node.js ${{ matrix.node }}

steps:
- uses: actions/checkout@v3

- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.0.1
with:
version: 7.20.0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
- name: Install yarn latest
run: yarn set version berry && yarn set version latest
cache: "pnpm"
- name: Install deps
run: yarn
run: pnpm install
- name: Linting
run: yarn lint
run: pnpm lint
- name: Test
run: yarn test
run: pnpm test

0 comments on commit f131875

Please sign in to comment.