Skip to content

Commit

Permalink
ci: update workflows
Browse files Browse the repository at this point in the history
- add new ci (build) workflow
- update existing release workflow
  • Loading branch information
cshawaus committed Mar 18, 2024
1 parent b8474ba commit c2cdd2b
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 6 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
push:
branches:
- develop
pull_request:
types:
- opened
- reopened
- synchronize

jobs:
ci:
strategy:
matrix:
node: [18, 20]
os: [ubuntu-latest, windows-latest]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8.9.2

- uses: actions/setup-node@v4
name: Install Node.js
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'

- name: Install Dependencies
run: pnpm install --frozen-lockfile

- name: Lint
run: pnpm lint

- name: Build
run: pnpm build
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,26 @@ jobs:
id-token: write

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8.9.2

- uses: actions/setup-node@v3
name: Install Node.js
- uses: actions/setup-node@v4
name: Install Node
with:
node-version: 20
cache: 'pnpm'

- name: Update npm
run: npm install -g npm@latest

- name: Install dependencies
- name: Install Dependencies
run: pnpm install --frozen-lockfile

- name: Lint our source code
- name: Lint
run: pnpm lint

- name: Build
Expand Down

0 comments on commit c2cdd2b

Please sign in to comment.