Skip to content

Conversation

joncinque
Copy link
Contributor

Problem

This is very similar to #670, but for the publish-js workflow.

Summary of changes

Use the reusable workflow.

publish-js-dry-run-%:
cd "$(call make-path-trim-level,$*)" && pnpm install && pnpm version $(call level,$*) --no-git-tag-version

publish-js-%:
Copy link
Member

Choose a reason for hiding this comment

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

The previous script was named publish-j% with the following comment:

# Make defaults % to .o if nothing is provided there, and then tries to build it
# as a C project, so we do something a bit hacky, and assume that any target
# starting with "j" is actually for "js".

Some of the other existing JS scripts still follow that convention. I think we should consider choosing the same naming convention for all JS scripts.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah that's a good point, I'll make them align better:

#### Problem

This is very similar to solana-program#670, but for the publish-js workflow.

#### Summary of changes

Use the reusable workflow.
@joncinque
Copy link
Contributor Author

Ok this should be ready for another look!

Copy link
Member

@lorisleiva lorisleiva left a comment

Choose a reason for hiding this comment

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

Very nice!

@joncinque joncinque merged commit 052ce8e into solana-program:main Sep 2, 2025
30 checks passed
@joncinque joncinque deleted the reuse-pubjs branch September 2, 2025 10:30
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.

2 participants