Skip to content

Commit 476119d

Browse files
Add changesets/cli to release embed (#8126)
* Add dep versions * Release new version for embeds * Add prepublish * Use prepare script which works with both npm and yarn * Add changesets correctly * Add embed publishing command --------- Co-authored-by: zomars <zomars@me.com>
1 parent 040f03a commit 476119d

File tree

25 files changed

+700
-24
lines changed

25 files changed

+700
-24
lines changed

.changeset/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

+28
Large diffs are not rendered by default.

.yarnrc.yml

+2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ nodeLinker: node-modules
33
plugins:
44
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
55
spec: "@yarnpkg/plugin-interactive-tools"
6+
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
7+
spec: "@yarnpkg/plugin-workspace-tools"
68

79
yarnPath: .yarn/releases/yarn-3.4.1.cjs

apps/docs/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@calcom/docs",
33
"version": "1.0.0",
4+
"private": true,
45
"description": "",
56
"main": "index.js",
67
"scripts": {

apps/web/CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# @calcom/web
2+
3+
## 2.7.16
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
- @calcom/embed-snippet@1.0.7
9+
- @calcom/embed-react@1.0.12
10+
- @calcom/embed-core@1.1.5

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"app-store": "yarn app-store-cli cli",
1818
"create-app": "yarn app-store create",
1919
"edit-app": "yarn app-store edit",
20+
"publish-embed": "yarn workspaces foreach --from=\"@calcom/embed*\" npm publish --access=public",
2021
"delete-app": "yarn app-store delete",
2122
"create-app-template": "yarn app-store create-template",
2223
"edit-app-template": "yarn app-store edit-template",
@@ -74,6 +75,7 @@
7475
"web": "yarn workspace @calcom/web"
7576
},
7677
"devDependencies": {
78+
"@changesets/cli": "^2.26.1",
7779
"@deploysentinel/playwright": "^0.3.3",
7880
"@playwright/test": "^1.31.2",
7981
"@snaplet/copycat": "^0.3.0",

packages/app-store-cli/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "@calcom/app-store-cli",
3+
"private": true,
34
"sideEffects": false,
45
"version": "0.0.0",
56
"bin": "dist/cli.js",

packages/app-store/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "@calcom/app-store",
3+
"private": true,
34
"sideEffects": false,
45
"version": "0.0.0",
56
"main": "./index.ts",

packages/config/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@calcom/config",
33
"sideEffects": false,
4+
"private": true,
45
"version": "0.0.0",
56
"main": "index.js",
67
"license": "MIT",

packages/dayjs/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@calcom/dayjs",
33
"description": "Cal.com's Day.js shared library",
4+
"private": true,
45
"version": "1.0.0",
56
"main": "./index.ts",
67
"dependencies": {

packages/embeds/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,11 @@ This folder contains all the various flavours of embeds.
66
`snippet` contains the Vanilla JS Code Snippet that can be installed on any website and would automatically fetch the `core` library.
77

88
Please see the respective folder READMEs for details on them.
9+
10+
## Publishing to NPM - Soon to be automated using changesets github action
11+
To publish the packages. Following steps should be followed. All commands are to be run at the root.
12+
13+
1. `yarn changeset` -> Creates changelog files and adds summary to changelog. Select embed packages only here.
14+
2. `yarn changeset version` -> Bumps the versions as required
15+
3. Get the PR reviewed and merged
16+
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
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# @calcom/embed-core
2+
3+
## 1.1.5
4+
5+
### Patch Changes
6+
7+
- Add changesets. Use prepack instead of prePublish and prepublish only as that works with both yarn and npm

packages/embeds/embed-core/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@calcom/embed-core",
3-
"version": "1.1.3",
3+
"version": "1.1.5",
44
"description": "This is the vanilla JS core script that embeds Cal Link",
55
"main": "./dist/embed/embed.js",
66
"types": "./dist/index.d.ts",
@@ -29,8 +29,7 @@
2929
"embed-tests": "yarn playwright test --config=playwright/config/playwright.config.ts",
3030
"embed-tests-quick": "QUICK=true yarn embed-tests",
3131
"embed-tests-update-snapshots:ci": "yarn embed-tests-quick --update-snapshots",
32-
"prepare": "NEXT_PUBLIC_WEBAPP_URL='https://app.cal.com' yarn build",
33-
"publish-prod:patch": "yarn publish --access public --patch",
32+
"prepack": "NEXT_PUBLIC_WEBAPP_URL='https://app.cal.com' yarn build",
3433
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf ../../../apps/web/public/embed"
3534
},
3635
"files": [
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# @calcom/embed-react
2+
3+
## 1.0.12
4+
5+
### Patch Changes
6+
7+
- Add changesets. Use prepack instead of prePublish and prepublish only as that works with both yarn and npm
8+
- Updated dependencies
9+
- @calcom/embed-snippet@1.0.7
10+
- @calcom/embed-core@1.1.5

packages/embeds/embed-react/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@calcom/embed-react",
33
"sideEffects": false,
4-
"version": "1.0.10",
4+
"version": "1.0.12",
55
"description": "Embed Cal Link as a React Component",
66
"license": "SEE LICENSE IN LICENSE",
77
"repository": {
@@ -20,9 +20,9 @@
2020
"embed-tests": "yarn playwright test --config=./playwright/config/playwright.config.ts",
2121
"embed-tests-quick": "QUICK=true yarn embed-tests",
2222
"embed-tests-update-snapshots:ci": "yarn embed-tests-quick --update-snapshots",
23+
"prepack": "NEXT_PUBLIC_EMBED_LIB_URL='https://app.cal.com/embed/embed.js' NEXT_PUBLIC_WEBAPP_URL='https://app.cal.com' yarn build",
2324
"embed-web-start": "yarn workspace @calcom/web start",
2425
"embed-dev": "yarn workspace @calcom/embed-react dev",
25-
"publish-prod:patch": "yarn publish --access public --patch",
2626
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
2727
},
2828
"main": "./dist/Cal.umd.js",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# @calcom/embed-snippet
2+
3+
## 1.0.7
4+
5+
### Patch Changes
6+
7+
- Add changesets. Use prepack instead of prePublish and prepublish only as that works with both yarn and npm
8+
- Updated dependencies
9+
- @calcom/embed-core@1.1.5

packages/embeds/embed-snippet/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@calcom/embed-snippet",
33
"sideEffects": false,
4-
"version": "1.0.5",
4+
"version": "1.0.7",
55
"main": "./dist/snippet.umd.js",
66
"module": "./dist/snippet.es.js",
77
"description": "Vanilla JS embed snippet that is responsible to fetch @calcom/embed-core and thus show Cal Link as an embed on a page.",
@@ -16,8 +16,7 @@
1616
"type-check": "tsc --pretty --noEmit",
1717
"type-check:ci": "tsc-absolute --pretty --noEmit",
1818
"lint": "eslint --ext .ts,.js src",
19-
"prepare": "NEXT_PUBLIC_EMBED_LIB_URL='https://app.cal.com/embed/embed.js' NEXT_PUBLIC_WEBAPP_URL='https://app.cal.com' yarn build",
20-
"publish-prod:patch": "yarn publish --access public --patch",
19+
"prepack": "NEXT_PUBLIC_EMBED_LIB_URL='https://app.cal.com/embed/embed.js' NEXT_PUBLIC_WEBAPP_URL='https://app.cal.com' yarn build",
2120
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
2221
},
2322
"files": [

packages/eslint-plugin/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@calcom/eslint-plugin-eslint",
33
"sideEffects": false,
4+
"private": true,
45
"version": "0.1.0",
56
"main": "./src/index.js",
67
"dependencies": {

packages/features/auth/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@calcom/feature-auth",
33
"sideEffects": false,
4+
"private": true,
45
"description": "Cal.com's main auth code",
56
"authors": "Cal.com, Inc.",
67
"version": "1.0.0",

packages/features/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@calcom/features",
33
"sideEffects": false,
4+
"private": true,
45
"description": "Cal.com's main collocation of features",
56
"authors": "Cal.com, Inc.",
67
"version": "1.0.0",

packages/lib/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "@calcom/lib",
3+
"private": true,
34
"sideEffects": false,
45
"version": "0.0.0",
56
"main": "./index.ts",

packages/trpc/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@calcom/trpc",
33
"sideEffects": false,
4+
"private": true,
45
"description": "Shared tRPC library for Cal.com",
56
"authors": "zomars",
67
"version": "1.0.0",

packages/ui/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "@calcom/ui",
3+
"private": true,
34
"sideEffects": false,
45
"version": "0.0.0",
56
"main": "./index.tsx",

0 commit comments

Comments
 (0)