-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate version bumping from releasing
- Loading branch information
1 parent
b7d66e8
commit a21de6c
Showing
2 changed files
with
66 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: "Create Version Bump PR For Ruby Gems & NPM Packages" | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
versionBump: | ||
description: 'Version Bump' | ||
required: true | ||
default: 'patch' | ||
type: choice | ||
options: | ||
- patch | ||
- minor | ||
- major | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: "actions/checkout@v3" | ||
|
||
- uses: "ruby/setup-ruby@v1" | ||
with: | ||
bundler-cache: true | ||
ruby-version: 3.2 | ||
|
||
- uses: "actions/setup-node@v3" | ||
with: | ||
node-version: '20.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: "echo pwd" | ||
run: pwd | ||
|
||
- name: "echo ls -al" | ||
run: ls -al | ||
|
||
- name: "echo versions" | ||
run: cat */lib/*/version.rb | grep VERSION | ||
|
||
- name: "echo versions" | ||
run: cat */lib/*/*/version.rb | grep VERSION | ||
|
||
- name: "echo npm versions" | ||
run: cat */package.json | grep version | ||
|
||
- name: "Install bump" | ||
run: gem install bump | ||
|
||
- name: "Bump all" | ||
run: ./bin/bump-all ${{ inputs.versionBump }} | ||
|
||
- name: "echo versions" | ||
run: cat */lib/*/version.rb | grep VERSION | ||
|
||
- name: "echo versions" | ||
run: cat */lib/*/*/version.rb | grep VERSION | ||
|
||
- name: "echo npm versions" | ||
run: cat */package.json | grep version | ||
|