Skip to content

Commit

Permalink
Merge pull request #16 from mxenabled/bm/auto_release
Browse files Browse the repository at this point in the history
Auto release
  • Loading branch information
brettmortensen authored Jan 20, 2022
2 parents d6de1be + 2292489 commit 4b7269d
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .github/read_version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
require "yaml"
config = ::YAML.load(File.read("openapi/config.yml"))
puts config["npmVersion"]
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [master]

jobs:
build:
Publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release

on:
push:
branches: [ master ]

jobs:
Release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 3.1
- name: Read version
id: read_version
run: echo "::set-output name=version::$(ruby .github/read_version.rb)"
- name: Create tag and release
run: |
gh release create "v${{ steps.read_version.outputs.version }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion openapi/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
npmName: "mx-platform-node"
npmVersion: 0.6.0
npmVersion: 0.6.1
supportsES6: true
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mx-platform-node",
"version": "0.6.0",
"version": "0.6.1",
"description": "A Node library for the MX Platform API.",
"author": "MX",
"keywords": [
Expand Down

0 comments on commit 4b7269d

Please sign in to comment.