Skip to content

Commit

Permalink
ci: Switch to changesets. (#181)
Browse files Browse the repository at this point in the history
* Add dep.

* Add changesets.

* Add changes.

* Remove old code.

* Add workflow.
milesj authored Dec 4, 2024
1 parent 04b7926 commit d237386
Showing 7 changed files with 547 additions and 11 deletions.
13 changes: 13 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.4/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": [
"website"
]
}
9 changes: 9 additions & 0 deletions .changeset/funny-avocados-return.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'emojibase': major
'emojibase-data': major
'emojibase-generator': major
'emojibase-regex': major
'emojibase-test-utils': major
---

Update to Emoji v16 and CLDR 46.
9 changes: 9 additions & 0 deletions .changeset/silver-games-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'emojibase': major
'emojibase-data': major
'emojibase-generator': major
'emojibase-regex': major
'emojibase-test-utils': major
---

Drop Node.js v16 support. Requires >= v18.12.
9 changes: 4 additions & 5 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
name: PR
on: pull_request
jobs:
conventional:
name: Conventional Title
changesets:
name: Changeset
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: yarn
- uses: beemojs/conventional-pr-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: yarn install
- run: yarn changeset status --since=master
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Release
on:
workflow_dispatch:
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: yarn
- run: yarn install
- uses: changesets/action@v1
with:
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -4,6 +4,8 @@
"version": "0.0.0",
"scripts": {
"build": "packemon build-workspace --addEngines",
"bump": "changeset",
"bump:status": "changeset status",
"pack": "packemon pack-workspace --addEngines --declaration",
"clean:cache": "rm -rf ./cache",
"check": "yarn run type && yarn run test && yarn run lint",
@@ -19,13 +21,14 @@
"generate:types": "node ./bin/generateTypes.mjs",
"test": "jest --colors --logHeapUsage",
"format": "prettier --write .",
"release": "yarn run pack && yarn run check && lerna-release",
"release": "yarn run pack && changeset publish",
"type": "tsc --build"
},
"engines": {
"node": ">=20.0.0"
},
"devDependencies": {
"@changesets/cli": "^2.27.10",
"@moonrepo/dev": "^3.0.2",
"@types/jest": "^29.5.14",
"babel-preset-moon": "^3.0.3",
494 changes: 489 additions & 5 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit d237386

Please sign in to comment.