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) or Security, 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

babel-preset

@ownclouders/babel-preset

design-system

@ownclouders/design-system

eslint-config

@ownclouders/eslint-config

extension-sdk

@ownclouders/extension-sdk

prettier-config

@ownclouders/prettier-config

tsconfig

@ownclouders/tsconfig

web-client

@ownclouders/web-client

web-pkg

@ownclouders/web-pkg

web-test-helpers

@ownclouders/web-test-helpers

To publish a new version of a package:

  1. Bump the version in web/packages/<package>/package.json and merge it into master with a regular PR.

  2. Create a signed, annotated tag <package>-v<version> on the merged commit and push it to owncloud/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
  3. The Release NPM packages workflow (.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 version in the package’s package.json,

    • builds the design tokens and, for design-system, web-client, web-pkg and web-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 v* tag (for example v12.5.0) for Web. Any v* tag triggers the oCIS release workflow (.github/workflows/release.yml), which builds and publishes an oCIS release with that version.

Do not use web/dev/scripts/create_and_push_tags.sh or web/dev/scripts/bump_versions.sh. They are leftovers from the standalone Web repository: the first one pushes such a bare v<version> tag, the second one assumes that all packages share a single version.