Skip to content

Commit

Permalink
use diffrrent action
Browse files Browse the repository at this point in the history
  • Loading branch information
dpwoert committed Jan 3, 2024
1 parent a9c2e0e commit 5b21119
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,23 @@ 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
uses: MYXOMOPX/modify-pkg-json@master
with:
cmd: >
jq \'.devDependencies.@magic-circle/editor = "*"\\' package.json > "$tmp" && mv "$tmp" package.json
target: ./package.json
save_to: ./dist/package.json
action: 'set_devdep_version'
argument: '@magic-circle/editor *'

- name: Change package version for client
uses: sergeysova/jq-action@v2
uses: MYXOMOPX/modify-pkg-json@master
with:
cmd: >
jq '.dependencies.@magic-circle/client = "*"' package.json > "$tmp" && mv "$tmp" package.json
target: ./package.json
save_to: ./dist/package.json
action: 'set_dep_version'
argument: '@magic-circle/client *'

- name: Setup repo
run: npm ci
- name: Run Magic Circle
Expand Down

0 comments on commit 5b21119

Please sign in to comment.