Skip to content

test for yml syntax

test for yml syntax #4

Workflow file for this run

name: NPM
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: Show directory content
run: ls
- name: Extract version from package.json
uses: sergeysova/jq-action@v2
id: version
with:
cmd: 'jq .version package.json -r'
- name: Change package version for editor
uses: sergeysova/jq-action@v2
with:
cmd: >
jq \'.devDependencies.@magic-circle/editor = "*"\\' package.json > "$tmp" && mv "$tmp" package.json
- name: Change package version for client
uses: sergeysova/jq-action@v2
with:
cmd: >
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