Skip to content

Commit

Permalink
Add GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
danielz-mnx committed May 16, 2024
1 parent 7b4bd9d commit 8fa0cbb
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/actions/environment/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 'Environment setup'
description: 'Sets up the base build typescript environment'

runs:
using: 'composite'
steps:
- name: Use PNPM
uses: pnpm/action-setup@v2
with:
version: 9.1.0

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20.11.0
cache: 'pnpm'

- name: Force install TS
shell: 'bash'
run: 'npm --no-update-notifier --no-fund --global install [email protected]'

- name: Install dependencies
shell: 'bash'
run: pnpm install
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build

concurrency:
group: $${{github.workflow}}-${{github.event.number || github.ref_name}}
cancel-in-progress: false

on:
pull_request:
push:
tags:
- 'v*'
branches:
- main

env:
NODE_OPTIONS: '--max-old-space-size=8192'

jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Environment Setup
uses: ./.github/actions/environment

- name: Lint
run: pnpm lint

- name: Build
run: pnpm build && pnpm prepack

0 comments on commit 8fa0cbb

Please sign in to comment.