Releasing
Web Is Released With oCIS
ownCloud Web lives in the web/ folder of the oCIS repository. It is not released on its own: the web service build runs pnpm install && pnpm check:types && pnpm build in web/ and copies the result into the service assets, so every oCIS release ships the Web version of the commit it was built from.
There are no separate Web releases, Web versions or Web release branches. Only the npm packages described below have versions of their own. Web changes reach a release the same way as any other oCIS change, through master and the oCIS stable-X.Y branches. See the oCIS release life cycle for release types and schedule, and the Releasing Guide for the oCIS release process.
Changelog Entries
For a user-facing Web change, add a changelog entry to the oCIS root changelog/unreleased/ folder, based on changelog/TEMPLATE. These entries are what the oCIS release workflow (.github/workflows/release.yml) turns into the release notes of the GitHub release, using calens:
-
The first line starts with the change type
Bugfix,Change(breaking change),Enhancement(new feature) orSecurity, followed by a short title. -
The body describes the change, wrapped at 80 characters.
-
The last section lists the PR and issue URLs, for example
https://github.com/owncloud/ocis/pull/<number>.
Existing Web entries are named like bugfix-web-embed-delegated-token-renewal.md or enhancement-web-bump-pinia.md. Do not create or move versioned changelog folders, this is part of the oCIS release process.
In addition, PR titles must follow Conventional Commits as described in COMMIT_CONVENTION.md; the pr-title.yml workflow checks this. Web changes usually use web as the scope, for example fix(web): [OCISDEV-1572] show an error when a copy gets no answer. PRs are squash-merged, so the title becomes the commit message. make changelog-generate can build notes from these titles with git-cliff, but no release workflow uses that yet, so the changelog entry is still required.
Translations
Web translations are synced with Transifex automatically by the nightly Translation Sync workflow (job sync-web), which opens a pull request with the updated translations. To update them manually, run the following from the web/ folder:
make l10n-pull # pull the latest translations from Transifex
make l10n-write # write them to the translations.json files
Publishing the npm Packages
The following packages in web/packages/ are published to npm individually. Each one has its own version in its package.json, the versions are not kept in sync.
| Package Folder | npm Package |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
To publish a new version of a package:
-
Bump the
versioninweb/packages/<package>/package.jsonand merge it intomasterwith a regular PR. -
Create a signed, annotated tag
<package>-v<version>on the merged commit and push it toowncloud/ocis:git tag -s -a web-pkg-v13.0.1 -m "web-pkg-v13.0.1" <merged-commit> git push origin web-pkg-v13.0.1 -
The
Release NPM packagesworkflow (.github/workflows/release-npm-packages.yml) picks up the tag and:-
determines the package from the tag prefix and fails for an unknown prefix,
-
fails if the version in the tag does not match the
versionin the package’spackage.json, -
builds the design tokens and, for
design-system,web-client,web-pkgandweb-test-helpers, the package itself, -
publishes the package with
pnpm publish --access public --tag latest, authenticating with the job’s GitHub OIDC token (id-token: write). No npm token is configured in the workflow.
-
Every publish sets the latest dist-tag, so the version just published becomes latest.
|
Never push a bare Do not use |