Skip to content

Commit

Permalink
Merge pull request #847 from watermark-design/dev
Browse files Browse the repository at this point in the history
ci: add pr-build.yml
zhensherlock authored Dec 8, 2024
2 parents 901540c + 0666559 commit 03f794e
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: PR Build

on:
pull_request:
branches:
- main
- dev

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install PNPM
run: npm i pnpm@latest -g

- name: Setup npmrc
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc

- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER

- name: Install Package
run: pnpm install

- name: Build Package
run: pnpm run build

- name: Build Docs Package
run: pnpm run docs:build

0 comments on commit 03f794e

Please sign in to comment.