Fix vs code publishing (#3976)

The Publish VS Code action [failed since the packages were not
built](https://github.com/tldraw/tldraw/actions/runs/9565809557/job/26369574822#step:6:11).
This should fix it.

### 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

- Fix VS Code publishing.
This commit is contained in:
Mitja Bezenšek 2024-06-18 16:29:35 +02:00 committed by GitHub
parent 37a9c402c1
commit a1e5a26e3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,6 +34,7 @@ async function updateExtensionVersion() {
} }
async function packageAndPublish() { async function packageAndPublish() {
await exec('yarn', ['lazy', 'run', 'build', '--filter=packages/*'])
await exec('yarn', ['package'], { pwd: EXTENSION_DIR }) await exec('yarn', ['package'], { pwd: EXTENSION_DIR })
await exec('yarn', ['publish'], { pwd: EXTENSION_DIR }) await exec('yarn', ['publish'], { pwd: EXTENSION_DIR })
} }