Skip to content

Commit

Permalink
chore: Initial release automation prep.
Browse files Browse the repository at this point in the history
  • Loading branch information
petejohanson committed Jun 29, 2024
1 parent 9ce6a71 commit 226dec6
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 48 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on:
push:
branches:
- main

permissions: {}

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.ZMK_STUDIO_RELEASE_TOKEN }}
release-type: node
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
with:
submodules: true
- uses: actions/setup-node@v4
with:
node-version: 12
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}
- run: npm ci
if: ${{ steps.release.outputs.release_created }}
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.ZMK_STUDIO_NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}
Empty file added CHANGELOG.md
Empty file.
49 changes: 1 addition & 48 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "zmk-studio-ts-client",
"name": "@zmkfirmware/zmk-studio-ts-client",
"version": "0.0.1-development",
"description": "RPC client library for interacting with ZMK Studio enabled keyboards",
"type": "module",
Expand All @@ -23,7 +23,6 @@
"clean": "rm -rf ./lib/",
"cm": "cz",
"lint": "eslint ./src/ --fix",
"semantic-release": "semantic-release",
"test:watch": "jest --watch",
"test": "jest --coverage",
"typecheck": "tsc --noEmit"
Expand Down Expand Up @@ -72,7 +71,6 @@
"jest": "^29.0.0",
"lint-staged": "^13.2.1",
"prettier": "^2.2.1",
"semantic-release": "^21.0.1",
"ts-jest": "^29.0.0",
"ts-node": "^10.2.1",
"typescript": "^4.2.4",
Expand All @@ -86,50 +84,5 @@
},
"lint-staged": {
"*.ts": "eslint --cache --cache-location .eslintcache --fix"
},
"release": {
"branches": [
"main"
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"releaseRules": [
{
"type": "build",
"scope": "deps",
"release": "patch"
}
]
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"presetConfig": {
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "build",
"section": "Dependencies and Other Build Updates",
"hidden": false
}
]
}
}
],
"@semantic-release/npm",
"@semantic-release/github"
]
}
}

0 comments on commit 226dec6

Please sign in to comment.