44a3ea7363
This PR makes it so that our docs deployment process is tied to, and mirrors, the npm deployment process. From here on: - Commits to main get deployed to staging.tldraw.dev - Commits to a special protected branch called `docs-production` get deployed to www.tldraw.dev - Whenever we create a new npm 'latest' release we reset the HEAD of docs-production to point to the tagged commit for that release. - If we make a docs change that we want to appear on tldraw.dev ASAP without waiting for the next npm release, we'll have to follow the same process as for creating a patch release i.e merge a cherry-pick PR targeting the latest release branch e.g. `v2.0.x`. This will not cause another npm patch release unless the cherry-picked changes touch source files, e.g. updating TSDoc comments. ### Change Type - [x] `docs` — Changes to the documentation, examples, or templates. - [x] `tools` — Changes to infrastructure, CI, internal scripts, debugging tools, etc. |
||
---|---|---|
.. | ||
lib | ||
vercel | ||
api-check.ts | ||
build-api.ts | ||
build-package.ts | ||
CHANGELOG.md | ||
check-scripts.ts | ||
check-tsconfigs.ts | ||
clean.sh | ||
deploy.ts | ||
lint.ts | ||
package.json | ||
postpack.sh | ||
prepack.ts | ||
prune-preview-deploys.ts | ||
publish-canary.ts | ||
publish-manual.ts | ||
publish-new.ts | ||
publish-patch.ts | ||
purge-css.ts | ||
refresh-assets.ts | ||
tsconfig.json | ||
typecheck.ts | ||
update-pr-template.ts |