Skip to content

Commit

Permalink
ci: Setup release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
blaine-arcjet committed Dec 15, 2023
1 parent ae8f1b7 commit 2eab139
Show file tree
Hide file tree
Showing 5 changed files with 127 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/.release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
".": "1.0.0-alpha.5",
"analyze": "1.0.0-alpha.5",
"arcjet": "1.0.0-alpha.5",
"arcjet-next": "1.0.0-alpha.5",
"eslint-config": "1.0.0-alpha.5",
"ip": "1.0.0-alpha.5",
"logger": "1.0.0-alpha.5",
"protocol": "1.0.0-alpha.5",
"rollup-config": "1.0.0-alpha.5",
"tsconfig": "1.0.0-alpha.5"
}
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ updates:
interval: "daily"
assignees:
- blaine-arcjet
reviewers:
- blaine-arcjet
commit-message:
prefix: "deps"
prefix-development: "deps(dev)"
groups:
dependencies:
dependency-type: "production"
Expand Down
91 changes: 91 additions & 0 deletions .github/release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"versioning": "prerelease",
"release-type": "node",
"changelog-path": "CHANGELOG.md",
"changelog-sections": [
{ "type": "feat", "section": "🚀 New Features" },
{ "type": "fix", "section": "🪲 Bug Fixes" },
{ "type": "perf", "section": "🏎️ Performance Improvements" },
{ "type": "deps", "section": "📦 Dependencies" },
{ "type": "revert", "section": "↩️ Reverts" },
{ "type": "docs", "section": "📝 Documentation" },
{ "type": "chore", "section": "🧹 Miscellaneous Chores" },
{ "type": "refactor", "section": "⌨️ Code Refactoring" },
{ "type": "test", "section": "📚 Tests" },
{ "type": "build", "section": "🔨 Build System" },
{ "type": "ci", "section": "✅ Continuous Integration" }
],
"group-pull-request-title-pattern": "chore: Release ${version}",
"pull-request-header": "Automatically generated with [Release Please](https://github.com/googleapis/release-please).",
"pull-request-footer": "",
"include-v-in-tag": true,
"bump-minor-pre-major": false,
"bump-patch-for-minor-pre-major": false,
"draft": false,
"prerelease": false,
"packages": {
".": {
"component": "root",
"include-component-in-tag": false
},
"analyze": {
"component": "@arcjet/analyze",
"skip-github-release": true
},
"arcjet": {
"component": "arcjet",
"skip-github-release": true
},
"arcjet-next": {
"component": "@arcjet/next",
"skip-github-release": true
},
"eslint-config": {
"component": "@arcjet/eslint-config",
"skip-github-release": true
},
"ip": {
"component": "@arcjet/ip",
"skip-github-release": true
},
"logger": {
"component": "@arcjet/logger",
"skip-github-release": true
},
"protocol": {
"component": "@arcjet/protocol",
"skip-github-release": true
},
"rollup-config": {
"component": "@arcjet/rollup-config",
"skip-github-release": true
},
"tsconfig": {
"component": "@arcjet/tsconfig",
"skip-github-release": true
}
},
"plugins": [
{
"type": "node-workspace",
"merge": false
},
{
"type": "linked-versions",
"groupName": "arcjet-js",
"components": [
"root",
"@arcjet/analyze",
"arcjet",
"@arjcet/next",
"@arcjet/eslint-config",
"@arcjet/ip",
"@arcjet/logger",
"@arcjet/protocol",
"@arcjet/rollup-config",
"@arcjet/tsconfig"
]
}
]
}
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Create release"

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Release Please
uses: google-github-actions/release-please-action@a2d8d683f209466ee8c695cd994ae2cf08b1642d
with:
token: ${{ secrets.ARCJET_JS_RELEASE_PLEASE }}
config-file: .github/release-please-config.json
manifest-file: .github/.release-please-manifest.json
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"name": "arcjet-js",
"version": "1.0.0-alpha.5",
"private": true,
"engines": {
"node": ">=18"
},
Expand Down

0 comments on commit 2eab139

Please sign in to comment.