Skip to content

Commit

Permalink
ci: add release-please workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
maxveldink committed Feb 14, 2024
1 parent 0c149d1 commit 86dfc02
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
with:
# this assumes that you have created a personal access token
# (PAT) and configured it as a GitHub action secret named
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
# this is a built-in strategy in release-please, see "Action Inputs"
# for more options
release-type: ruby
1 change: 1 addition & 0 deletions lib/sorbet-schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
loader = Zeitwerk::Loader.new
loader.push_dir(__dir__.to_s)
loader.ignore(__FILE__)
loader.ignore("#{__dir__}/sorbet-schema/version.rb")
loader.inflector.inflect(
"json_serializer" => "JSONSerializer"
)
Expand Down
5 changes: 5 additions & 0 deletions lib/sorbet-schema/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# typed: strict

module SorbetSchema
VERSION = "0.1.0"
end
4 changes: 3 additions & 1 deletion sorbet-schema.gemspec
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# frozen_string_literal: true

require_relative "lib/sorbet-schema/version"

Gem::Specification.new do |spec|
spec.name = "sorbet-schema"
spec.version = "0.1.0"
spec.version = SorbetSchema::VERSION
spec.authors = ["Max VelDink"]
spec.email = ["[email protected]"]

Expand Down

0 comments on commit 86dfc02

Please sign in to comment.