2022-03-31 08:45:47 +00:00
# Embeds
This folder contains all the various flavours of embeds.
`core` contains the core library written in vanilla JS that manages the embed.
`snippet` contains the Vanilla JS Code Snippet that can be installed on any website and would automatically fetch the `core` library.
2022-06-24 13:37:56 +00:00
Please see the respective folder READMEs for details on them.
2023-05-13 08:22:31 +00:00
2023-06-22 15:38:51 +00:00
## Publishing to NPM. It will soon be automated using changesets github action
2023-06-22 22:25:37 +00:00
2023-05-13 08:22:31 +00:00
To publish the packages. Following steps should be followed. All commands are to be run at the root.
1. `yarn changeset` -> Creates changelog files and adds summary to changelog. Select embed packages only here.
2. `yarn changeset version` -> Bumps the versions as required
3. Get the PR reviewed and merged
2023-06-22 22:25:37 +00:00
4. `yarn publish-embed` -> Releases all packages. We can't use `yarn changeset publish` because it doesn't support workspace: prefix removal yet. See https://github.com/changesets/changesets/issues/432#issuecomment-1016365428