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

Add tests and automated publishing the package to NPM #95

Closed
wants to merge 7 commits into from

Conversation

robmosca
Copy link
Contributor

This PR:

  • introduces automated publishing of the package using the changeset action. The setup is identical to the one in single-spa-react
  • introduces Jest tests on the API

For automated publishing to work, it is necessary that:

  • The GITHUB_TOKEN is granted permissions to create and approve pull requests. This can be done in Settings -> Actions -> General -> Workflow permissions -> Allow GitHub Actions to create and approve pull requests
  • The admin of the repo creates an NPM_TOKEN secret with an NPM token with write permissions to the organization (or at least the corresponding package, for publishing).

@changeset-bot
Copy link

changeset-bot bot commented Sep 29, 2023

🦋 Changeset detected

Latest commit: 09057fe

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
import-map-overrides Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@robmosca
Copy link
Contributor Author

Closed in favour of #96

@robmosca robmosca closed this Sep 29, 2023
@robmosca robmosca deleted the add-publish-automation branch September 29, 2023 07:59
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.

1 participant