Skip to content

Commit

Permalink
ci: changesets
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfreska committed May 17, 2024
1 parent 8a8e0d7 commit 520ea29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3,093 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ jobs:
uses: ./.github/actions/setup
with:
node_version: 20.10.0
- name: Install @changesets/cli
shell: bash
run: npm install
# Electron has issues with npm and yarn package hoisting in a monorepo
# so the repo is set up as individual projects without workspaces.
# Add them only for generating changesets.
Expand All @@ -31,6 +28,11 @@ jobs:
const packageJson = JSON.parse(fs.readFileSync(path, 'utf8'));
packageJson.workspaces = ['hostd', 'renterd', 'walletd'];
fs.writeFileSync(path, JSON.stringify(packageJson, null, 2));
# We only care about @changesets/cli and the package lock including the
# workspaces, but we just have to do a full install anyway.
- name: Install @changesets/cli
shell: bash
run: npm install
- name: Update release pull request or publish
id: changesets
uses: changesets/action@v1
Expand Down
Loading

0 comments on commit 520ea29

Please sign in to comment.