Skip to content

Release Ruby Gems & NPM Packages #11

Release Ruby Gems & NPM Packages

Release Ruby Gems & NPM Packages #11

Workflow file for this run

name: "Release 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
- 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: "Release all"
run: ./bin/release-all
- 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