Skip to content

Commit

Permalink
test for npm script
Browse files Browse the repository at this point in the history
  • Loading branch information
dpwoert committed Jan 3, 2024
1 parent 9854410 commit 2d44eb8
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test

on:
schedule:
- cron: '0 18 * * *'
push:
branches:
- main

jobs:
install:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 21.x
cache: 'npm'
- name: Open simple example
run: cd examples/simple
- name: Change package version for editor
run: jq '.devDependencies.@magic-circle/editor = "*"' package.json > "$tmp" && mv "$tmp" package.json
- name: Change package version for client
run: jq '.dependencies.@magic-circle/client = "*"' package.json > "$tmp" && mv "$tmp" package.json
- name: Setup repo
run: npm ci
- name: Run Magic Circle
run: npm run build:editor

0 comments on commit 2d44eb8

Please sign in to comment.