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
28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish to NPM

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'

- name: Upgrade npm for OIDC support
run: npm install -g npm@latest

- run: yarn install --immutable

- run: yarn prepare

- run: npm publish --provenance --access public ${{ github.event.release.prerelease && '--tag next' || ''}}
20 changes: 20 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release Please

on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.PAT_GITHUB }}
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.19.0
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "9.7.1"
}
25 changes: 1 addition & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"typescript": "tsc --noEmit",
"lint": "eslint \"**/*.{js,ts,tsx}\"",
"prepare": "bob build",
"release": "release-it",
"example": "yarn --cwd example",
"pods": "cd example && pod-install --quiet",
"bootstrap": "yarn example && yarn && yarn pods"
Expand All @@ -56,7 +55,6 @@
"devDependencies": {
"@commitlint/config-conventional": "^19.5.0",
"@react-native/eslint-config": "^0.73.1",
"@release-it/conventional-changelog": "^9.0.2",
"@types/jest": "^29.5.14",
"@types/react": "~18.3.12",
"@types/react-native": "0.72.2",
Expand All @@ -70,7 +68,6 @@
"pod-install": "^0.1.0",
"prettier": "^3.0.3",
"react-native-builder-bob": "^0.20.4",
"release-it": "^17.10.0",
"typescript": "^5.2.2"
},
"peerDependencies": {
Expand All @@ -81,33 +78,13 @@
"node": ">=16"
},
"resolutions": {
"@types/react": "^18.2.44",
"conventional-changelog-conventionalcommits": "8.0.0"
"@types/react": "^18.2.44"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"release-it": {
"git": {
"commitMessage": "chore: release ${version}",
"tagName": "v${version}"
},
"npm": {
"publish": true
},
"github": {
"release": true
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": {
"name": "conventionalcommits"
}
}
}
},
"eslintConfig": {
"root": true,
"extends": [
Expand Down
12 changes: 12 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"release-type": "node",
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"packages": {
".": {
"changelog-path": "CHANGELOG.md",
"include-component-in-tag": false
}
}
}
Loading
Loading