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

ci(shared-data, components): add github action for publishing packages to npm #14077

Merged
merged 49 commits into from
Dec 5, 2023

Conversation

b-cooper
Copy link
Contributor

@b-cooper b-cooper commented Nov 30, 2023

Overview

In order to support a single source of truth for applications outside of the monorepo (read:
"Protocol Library") that rely on fundamental components and geometries within the mono repo, add tag
based deploy actions that publish bundled artifacts to NPM.

Changelog

Review requests

Risk assessment

Copy link

codecov bot commented Nov 30, 2023

Codecov Report

Merging #14077 (ff0077c) into edge (3125a8d) will increase coverage by 0.00%.
Report is 10 commits behind head on edge.
The diff coverage is 11.11%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             edge   #14077      +/-   ##
==========================================
  Coverage   70.46%   70.46%              
==========================================
  Files        2511     1633     -878     
  Lines       71194    54520   -16674     
  Branches     8952     4026    -4926     
==========================================
- Hits        50165    38420   -11745     
+ Misses      18849    15403    -3446     
+ Partials     2180      697    -1483     
Flag Coverage Δ
app 38.56% <ø> (-29.20%) ⬇️
components 61.33% <ø> (+2.23%) ⬆️
g-code-testing 96.44% <ø> (+<0.01%) ⬆️
hardware 56.91% <ø> (+<0.01%) ⬆️
hardware-testing ∅ <ø> (∅)
labware-library 51.50% <ø> (ø)
notify-server 89.13% <ø> (ø)
protocol-designer 44.96% <11.11%> (-0.06%) ⬇️
shared-data 75.04% <ø> (+0.02%) ⬆️
step-generation 86.84% <ø> (ø)
system-server 96.02% <ø> (ø)
update-server 63.51% <ø> (ø)
usb-bridge 76.81% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...nts/src/legacy-hardware-sim/LabwareNameOverlay.tsx 0.00% <ø> (ø)
protocol-designer/src/load-file/migration/1_1_0.ts 63.63% <100.00%> (ø)
shared-data/js/getLabware.ts 21.73% <ø> (-4.19%) ⬇️
protocol-designer/src/labware-defs/utils.ts 0.00% <0.00%> (ø)

... and 892 files with indirect coverage changes

@@ -61,7 +61,6 @@ setup-js:
yarn
$(MAKE) -C $(APP_SHELL_DIR) setup
$(MAKE) -C $(APP_SHELL_ODD_DIR) setup
$(MAKE) -C $(SHARED_DATA_DIR) setup-js
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this call is no longer necessary.


.PHONY: dist-js
Copy link
Contributor Author

Choose a reason for hiding this comment

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

these were purely used for bundling v1 labware defs for old versions of monorepo SPA's

…s to npm

In order to support a single source of truth for applications outside of the monorepo (read:
"Protocol Library") that rely on fundamental components and geometries within the mono repo, add tag
based deploy actions that publish bundled artifacts to NPM.
@b-cooper b-cooper marked this pull request as ready for review December 5, 2023 18:34
@b-cooper b-cooper requested review from a team as code owners December 5, 2023 18:34
@b-cooper b-cooper requested a review from a team December 5, 2023 18:34
@b-cooper b-cooper requested a review from a team as a code owner December 5, 2023 18:34
@b-cooper b-cooper requested review from koji and removed request for a team December 5, 2023 18:34
@b-cooper b-cooper changed the title Chore add npm deploy sd and cl ci(shared-data, components): add github action for publishing packages to npm Dec 5, 2023
@b-cooper b-cooper requested review from shlokamin and removed request for koji December 5, 2023 18:36
@@ -115,14 +106,7 @@ export class URLDeck extends React.Component<{}> {
>
{labwareDefV2 ? (
<LabwareRender definition={labwareDefV2} />
) : (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this whole directory will never be deployed again. It can be removed when legacy PL is unlisted

Copy link
Member

Choose a reason for hiding this comment

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

We eagerly await the day

Copy link
Member

@sfoster1 sfoster1 left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@@ -115,14 +106,7 @@ export class URLDeck extends React.Component<{}> {
>
{labwareDefV2 ? (
<LabwareRender definition={labwareDefV2} />
) : (
Copy link
Member

Choose a reason for hiding this comment

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

We eagerly await the day

@b-cooper b-cooper requested a review from a team as a code owner December 5, 2023 21:02
echo "No build for ref ${{github.ref}} and event ${{github.event_type}}"
echo 'type=none' >> $GITHUB_OUTPUT
fi

deploy-components:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
deploy-components:
deploy-components-storybook:

Copy link
Member

@shlokamin shlokamin left a comment

Choose a reason for hiding this comment

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

🥳

@b-cooper b-cooper merged commit 3c4008d into edge Dec 5, 2023
80 of 83 checks passed
@b-cooper b-cooper deleted the chore_add-npm-deploy-sd-and-cl branch December 5, 2023 22:25
ncdiehl11 pushed a commit that referenced this pull request Dec 19, 2023
…s to npm (#14077)

In order to support a single source of truth for applications outside of the monorepo (read:
"Protocol Library") that rely on fundamental components and geometries within the mono repo, add tag
based deploy actions that publish bundled artifacts to NPM.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants