Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
nohaapav committed Oct 17, 2024
1 parent 4b3e559 commit 51243d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
- name: 🧩 Bump dependecies in hydration-ui repository
if: env.UPDATE_AVAILABLE == 'true'
run: |
cd hydration-ui
npm run changeset:snapshot-pr
cat package.json
cd ..
cp ./sdk/scripts/changeset-update-ext.mjs ./hydration-ui/changeset-update-ext.mjs
node ./hydration-ui/changeset-update-ext.mjs
cat ./hydration-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { readFileSync } from 'fs';

import * as git from '@changesets/git';
import outdent from 'outdent';

Expand Down Expand Up @@ -34,7 +36,8 @@ const main = async () => {

await git.config('user.name', 'GitHub Action');
await git.config('user.email', '[email protected]');
await git.add('.', cwd);
await git.add('package.json', cwd);
await git.add('package-lock.json', cwd);
await git.commit(releaseMessage, cwd);
console.log(releaseMessage);
};
Expand Down

0 comments on commit 51243d3

Please sign in to comment.