Skip to content

Commit

Permalink
test for yml syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
dpwoert committed Jan 3, 2024
1 parent 6d42ef4 commit a9c2e0e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,21 @@ jobs:
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
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
cmd: >
jq '.dependencies.@magic-circle/client = "*"' package.json > "$tmp" && mv "$tmp" package.json
- name: Setup repo
run: npm ci
- name: Run Magic Circle
Expand Down

0 comments on commit a9c2e0e

Please sign in to comment.