Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@ name: Release

on:
workflow_dispatch:
inputs:
type:
description: 'Release Type'
required: true
default: 'patch'
type: choice
options:
- major
- minor
- patch

jobs:
release:
Expand All @@ -32,7 +22,8 @@ jobs:
git config user.email "<>"

- name: Release
run: yarn release ${{ inputs.type }}
# We are following a prepare & perform process where you manually bump the version prior to releasing.
run: yarn release-it --no-increment --no-git.commit --no-git.push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 5 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,12 @@ Our pre-commit hooks verify that the linter and tests pass when committing.

We use [release-it](https://github.com/release-it/release-it) to make it easier to publish new versions. It handles common tasks like bumping version based on semver, creating tags and releases etc.

To publish new versions, run the following:
> [!NOTE]
> `release-it` was integrated previously when branch-protection rules weren't in place (or were circumvented). As a quick way around that, we manually version now but still use `release-it` for publishing. This means we don't fully leverage `release-it` anymore and thus it may be suitable for replacement (e.g. `release-please`)

```sh
yarn release
```
To publish new versions, first raise a release PR that bumps the `package.json` version.

When that is merged to main, trigger the `release` GitHub Actions workflow.

### Scripts

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"typecheck": "tsc --noEmit",
"lint": "eslint \"**/*.{js,ts,tsx}\"",
"prepack": "bob build",
"release": "release-it --no-increment",
"release": "release-it",
"example": "yarn --cwd example",
"example-new-architecture": "yarn --cwd example-new-architecture",
"bootstrap": "yarn example && yarn example-new-architecture && yarn install && yarn example bundle && yarn example pods && yarn example-new-architecture bundle && yarn example-new-architecture pods",
Expand Down
Loading