Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverts #86 and enables changesets for all packages #87

Merged
merged 3 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrects this as the version on npm is 0.0.1

"description": "The Opticks Command Line Interface",
"main": "dist/index.mjs",
"bin": "dist/index.mjs",
Expand Down