Release Ruby Gems & NPM Packages #11
Workflow file for this run
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
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 | |