Skip to content

Commit

Permalink
Reverts #86 and enables changesets for all packages (#87)
Browse files Browse the repository at this point in the history
* move changeset config to root dir

* correct cli version

* enable changesets for all packages
  • Loading branch information
dale-french authored Jul 25, 2024
1 parent 438919b commit e8eb0db
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
File renamed without changes.
File renamed without changes.
14 changes: 4 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,8 @@ jobs:
- name: Install dependencies
run: yarn install

- name: Build lib package
run: yarn workspace opticks build
- name: Build all packages
run: yarn workspaces foreach -A run build

- name: Test lib package
run: yarn workspace opticks test

- name: Build cli package
run: yarn workspace opticks-cli build

- name: Test cli package
run: yarn workspace opticks-cli test
- name: Test all packages
run: yarn workspaces foreach -A run test
9 changes: 7 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,17 @@ jobs:
corepack --version
yarn --version
- run: yarn install
- name: Install dependencies
run: yarn install

- name: Build all packages
run: yarn workspaces foreach -A run build

- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
publish: yarn workspace opticks release
publish: npx changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opticks-cli",
"version": "1.0.0",
"version": "0.0.1",
"description": "The Opticks Command Line Interface",
"main": "dist/index.mjs",
"bin": "dist/index.mjs",
Expand Down

0 comments on commit e8eb0db

Please sign in to comment.