tldraw/scripts
Mitja Bezenšek 80b758d466
Do a pre-release of the VS code extension for merges to main. (#3957)
VS Code extension can do
[pre-releases](https://code.visualstudio.com/api/working-with-extensions/publishing-extension#prerelease-extensions).
This would make it easier to test unreleased version of the extension
(thanks @ds300 [for the
suggestion](https://github.com/tldraw/tldraw/pull/3905#pullrequestreview-2122897351))

Tried the pre-release option manually, to see how it works:


https://github.com/tldraw/tldraw/assets/2523721/880fe0a2-3f29-405b-9862-b30594cf5334

There's a drawback in that we need to update version even for
pre-releases as they do not support other versioning schemes atm. I
decided to go with patch versions for pre-releases and minor versions
for regular releases. Feels like a better UX than having a really high
patch number due to bumping it on every PR.

> We only support major.minor.patch for extension versions, semver
pre-release tags are not supported. So, if you publish a
major.minor.patch-tag release to the Marketplace, it will be treated as
major.minor.patch, and the tag will be ignored. Versions must be
different between pre-release and regular releases. That is, if 1.2.3 is
uploaded as a pre-release, the next regular release must be uploaded
with a distinct version, such as 1.2.4. Full semver support will be
available in the future.

### Change Type

<!--  Please select a 'Scope' label ️ -->

- [ ] `sdk` — Changes the tldraw SDK
- [ ] `dotcom` — Changes the tldraw.com web app
- [ ] `docs` — Changes to the documentation, examples, or templates.
- [x] `vs code` — Changes to the vscode plugin
- [ ] `internal` — Does not affect user-facing stuff

<!--  Please select a 'Type' label ️ -->

- [ ] `bugfix` — Bug fix
- [ ] `feature` — New feature
- [ ] `improvement` — Improving existing features
- [ ] `chore` — Updating dependencies, other boring stuff
- [ ] `galaxy brain` — Architectural changes
- [ ] `tests` — Changes to any test code
- [x] `tools` — Changes to infrastructure, CI, internal scripts,
debugging tools, etc.
- [ ] `dunno` — I don't know

### Release Notes

- Release a pre-release when we merge changes to main.
2024-06-26 07:23:25 +00:00
..
lib Better generated docs for react components (#3930) 2024-06-13 13:09:27 +00:00
vercel Don't check api.json files into git (#3565) 2024-04-24 15:58:26 +00:00
api-check.ts security: enforce use of our fetch function and its default referrerpolicy (#3884) 2024-06-11 13:59:25 +00:00
build-api.ts Composable custom UI (#2796) 2024-02-15 12:10:09 +00:00
build-package.ts [chore] update lazyrepo (#1211) 2023-05-02 12:25:26 +00:00
CHANGELOG.md transfer-out: transfer out 2023-04-25 12:01:25 +01:00
check-scripts.ts tldraw_final_v6_final(old version).docx.pdf (#2998) 2024-02-29 16:06:19 +00:00
check-tsconfigs.ts tldraw_final_v6_final(old version).docx.pdf (#2998) 2024-02-29 16:06:19 +00:00
clean.sh Fix yarn clean (#2620) 2024-01-24 16:36:24 +00:00
deploy.ts assets: make option to transform urls dynamically / LOD (#3827) 2024-06-11 14:17:09 +00:00
license-report.ts [internal] Add license report scripts (#2751) 2024-04-01 13:36:40 +00:00
lint.ts [dx] Allow vscode to search inside md files by default (#3105) 2024-03-11 14:08:04 +00:00
package.json Fix deploy script (#3550) 2024-04-22 15:33:25 +00:00
postpack.sh transfer-out: transfer out 2023-04-25 12:01:25 +01:00
prepack.ts use native structuredClone on node, cloudflare workers, and in tests (#3166) 2024-03-18 17:16:09 +00:00
prune-preview-deploys.ts Force interface instead of type for better docs (#3815) 2024-05-22 15:55:49 +00:00
publish-canary.ts Uploading the static assets to R2 bucket (#3921) 2024-06-14 12:25:42 +00:00
publish-manual.ts Uploading the static assets to R2 bucket (#3921) 2024-06-14 12:25:42 +00:00
publish-new.ts Uploading the static assets to R2 bucket (#3921) 2024-06-14 12:25:42 +00:00
publish-patch.ts Uploading the static assets to R2 bucket (#3921) 2024-06-14 12:25:42 +00:00
publish-vscode-extension.ts Do a pre-release of the VS code extension for merges to main. (#3957) 2024-06-26 07:23:25 +00:00
purge-css.ts [tweak] dark mode colors (#2469) 2024-01-14 16:27:16 +00:00
refresh-assets.ts Force interface instead of type for better docs (#3815) 2024-05-22 15:55:49 +00:00
tsconfig.json transfer-out: transfer out 2023-04-25 12:01:25 +01:00
typecheck.ts replace console.log with nicelog (#1496) 2023-06-01 18:01:49 +00:00
update-pr-template.ts [DX] PR labels revamp (#3112) 2024-03-12 14:53:57 +00:00
upload-static-assets.ts Move from unpkg to our own cdn. (#3923) 2024-06-17 13:13:46 +00:00