diff --git a/.changeset/config.json b/.changeset/config.json index 0c48f8ae6..95bb5b60d 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -5,7 +5,7 @@ "linked": [], "access": "restricted", "baseBranch": "main", - "fixed": [["@rslib/*"]], + "fixed": [["@rslib/*", "rsbuild-plugin-dts"]], "___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": { "onlyUpdatePeerDependentsWhenOutOfRange": true, "updateInternalDependents": "always" diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml deleted file mode 100644 index 3b3362b26..000000000 --- a/.github/workflows/release-nightly.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Release Nightly - -on: - workflow_dispatch: - # Nightly release disabled - # schedule: - # 00:00 AM Beijing Time. - # - cron: "0 16 * * *" - -permissions: - # To publish packages with provenance - id-token: write - -jobs: - release: - name: Release Nightly - if: github.repository == 'web-infra-dev/rslib' - runs-on: ubuntu-latest - steps: - - name: Checkout Repo - uses: actions/checkout@v4 - with: - fetch-depth: 10 - - - name: Install Pnpm - run: corepack enable - - - name: Setup Node.js 18 - uses: actions/setup-node@v4 - with: - node-version: '18' - cache: 'pnpm' - - - name: Install Dependencies - run: pnpm install - - - name: Release - uses: web-infra-dev/actions@v2 - with: - version: nightly - branch: main - type: 'release' - tools: 'changeset' - env: - GITHUB_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - REPOSITORY: ${{ github.repository }} - REF: ${{ github.ref }} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f3477517b..7e60a22f2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -117,6 +117,23 @@ pnpm run lint For VS Code users, you can install the [Biome VS Code extension](https://marketplace.visualstudio.com/items?itemName=biomejs.biome) to see lints while typing. +# Versioning + +We use [changesets](https://github.com/changesets/changesets) to manage version. Currently, all rslib packages will use a fixed unified version. + +The release notes are automatically generated by [GitHub releases](https://github.com/web-infra-dev/rslib/releases). + +## Releasing + +Repository maintainers can publish a new version of all packages to npm. + +Here are the steps to publish (we generally use CI for releases and avoid publishing npm packages locally): + +1. [Create release pull request](https://github.com/web-infra-dev/rslib/actions/workflows/release-pull-request.yml). +2. [Run the release action](https://github.com/web-infra-dev/rslib/actions/workflows/release.yml). +3. [Generate the release notes](https://github.com/web-infra-dev/rslib/releases). +4. Merge the release pull request. + ## Caveats The project is still in its early stages and under active development, so it possible dependents on Rsbuild or Rspack canary versions to test the latest features. The current canary versions are: