Skip to content

Commit

Permalink
always use correct cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
dpwoert committed Jan 5, 2024
1 parent d74bf63 commit 3f19562
Showing 1 changed file with 18 additions and 22 deletions.
40 changes: 18 additions & 22 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,36 +11,32 @@ jobs:
install:
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
working-directory: examples/simple
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 21.x
# - name: Change package version for editor
# uses: MYXOMOPX/modify-pkg-json@master
# with:
# target: ./examples/simple/package.json
# save_to: ./examples/simple/package.json
# action: 'set_devdep_version'
# argument: '@magic-circle/editor *'
# - name: Change package version for client
# uses: MYXOMOPX/modify-pkg-json@master
# with:
# target: ./examples/simple/package.json
# save_to: ./examples/simple/package.json
# action: 'set_dep_version'
# argument: '@magic-circle/client *'
- name: Change package version for editor
uses: MYXOMOPX/modify-pkg-json@master
with:
target: ./examples/simple/package.json
save_to: ./examples/simple/package.json
action: 'set_devdep_version'
argument: '@magic-circle/editor *'
- name: Change package version for client
uses: MYXOMOPX/modify-pkg-json@master
with:
target: ./examples/simple/package.json
save_to: ./examples/simple/package.json
action: 'set_dep_version'
argument: '@magic-circle/client *'
- name: Output package json
working-directory: ./examples/simple
run: cat package.json
- name: Clean repo
run: rm -rf .husky && rm package.json && rm package-lock.json
- name: Show content
run: cd examples/simple && ls
- name: Setup repo
# working-directory: ./examples/simple
run: cd examples/simple && npm i
run: npm i
- name: Run Magic Circle
working-directory: ./examples/simple
run: npm run build:editor

0 comments on commit 3f19562

Please sign in to comment.