Skip to content

Commit

Permalink
Update lasereyes dependencies to workspace and adjust GitHub Actions …
Browse files Browse the repository at this point in the history
…for local development
  • Loading branch information
hathbanger committed Nov 15, 2024
1 parent e8aebdc commit ed26517
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 13 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ jobs:
cd ../..
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# Now promote lasereyes
- name: Promote lasereyes version
if: needs.check-package-changes.outputs.lasereyes_changed == 'true' ||
Expand All @@ -253,6 +254,16 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Revert dependencies in lasereyes package.json for local development
if: needs.check-package-changes.outputs.lasereyes_core_changed == 'true' || needs.check-package-changes.outputs.lasereyes_react_changed == 'true'
continue-on-error: true
run: |
cd packages/lasereyes
node -e "let pkg=require('./package.json'); pkg.dependencies['@omnisat/lasereyes-core']='workspace:*'; pkg.dependencies['@omnisat/lasereyes-react']='workspace:*'; require('fs').writeFileSync('./package.json', JSON.stringify(pkg, null, 2));"
cd ../..
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Commit stable version bump for all changed packages
run: |
git config --global user.email "[email protected]"
Expand Down
4 changes: 2 additions & 2 deletions packages/lasereyes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
"vite-plugin-dts": "^4.2.1"
},
"dependencies": {
"@omnisat/lasereyes-core": "0.0.45",
"@omnisat/lasereyes-react": "0.0.39",
"@omnisat/lasereyes-core": "workspace:*",
"@omnisat/lasereyes-react": "workspace:*",
"bip39": "^3.1.0"
},
"license": "MIT",
Expand Down
19 changes: 8 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ed26517

Please sign in to comment.