Skip to content

Commit

Permalink
build: run build script in CLI for svelte-lexical
Browse files Browse the repository at this point in the history
  • Loading branch information
umaranis committed Feb 25, 2023
1 parent 050cf1c commit c8d54e1
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 2 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Build

on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- run: pnpm i
working-directory: ./packages/svelte-lexical
- run: pnpm build
working-directory: ./packages/svelte-lexical
- run: pnpm svelte-check
working-directory: ./packages/svelte-lexical
- run: pnpm lint
working-directory: ./packages/svelte-lexical
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Svelte Lexical Tests
name: E2E Tests

on:
push:
Expand Down Expand Up @@ -65,4 +65,4 @@ jobs:
with:
name: Test Results
path: ./demos/playground/playwright-report
retention-days: 7
retention-days: 7

0 comments on commit c8d54e1

Please sign in to comment.