Skip to content

Commit

Permalink
Create node.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermewerner committed Jan 25, 2024
1 parent 17bb9f1 commit b16449e
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Node

on:
push:
branches:
- main
paths:
- ".github/workflows/node.yml"
- "**/*.js"
- "**/*.ts"
- "**/package.json"
- "**/tsconfig.json"
- "pnpm-lock.yaml"
- "pnpm-workspace.yaml"

pull_request:
branches:
- main
paths:
- ".github/workflows/node.yml"
- "**/*.js"
- "**/*.ts"
- "**/package.json"
- "**/tsconfig.json"
- "pnpm-lock.yaml"
- "pnpm-workspace.yaml"

jobs:
build:
name: pnpm build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node v${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: pnpm install
run: pnpm install
- name: pnpm build
run: pnpm build

0 comments on commit b16449e

Please sign in to comment.