Skip to content

Commit

Permalink
Separate version bumping from releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
jagthedrummer committed Aug 16, 2023
1 parent b7d66e8 commit a21de6c
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 10 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ on:
- minor
- major

permissions:
contents: write
pull-requests: write

jobs:
release:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -84,12 +80,6 @@ jobs:
- 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: "Release all"
run: ./bin/release-all

Expand Down
66 changes: 66 additions & 0 deletions .github/workflows/version-bump.yml
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

0 comments on commit a21de6c

Please sign in to comment.