Skip to content

Commit 3a0ae9f

Browse files
committed
Bump version for 0.5.1
1 parent 411b0ee commit 3a0ae9f

10 files changed

Lines changed: 25 additions & 10 deletions

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
marksmith (0.5.0)
4+
marksmith (0.5.1)
55
activesupport
66

77
GEM

app/assets/javascripts/list_continuation_controller-full.esm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
Marksmith 0.5.0
2+
Marksmith 0.5.1
33
*/
44
var ListContinuationController = (function () {
55
'use strict';

app/assets/javascripts/list_continuation_controller-no-stimulus.esm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
Marksmith 0.5.0
2+
Marksmith 0.5.1
33
*/
44
var ListContinuationController = (function (stimulus) {
55
'use strict';

app/assets/javascripts/marksmith_controller-full.esm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
Marksmith 0.5.0
2+
Marksmith 0.5.1
33
*/
44
var MarksmithController = (function () {
55
'use strict';

app/assets/javascripts/marksmith_controller-no-stimulus.esm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
Marksmith 0.5.0
2+
Marksmith 0.5.1
33
*/
44
var MarksmithController = (function (stimulus) {
55
'use strict';

bin/release

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class Release
1515

1616
def perform
1717
# ensure_no_uncommitted_changes
18+
ensure_logged_in
1819
write_version
1920
update_copyright
2021
bundle
@@ -39,6 +40,21 @@ class Release
3940
# abort "❌ Uncommitted changes" unless `git status --porcelain`.empty?
4041
# end
4142

43+
def ensure_logged_in
44+
puts "== Checking RubyGems and npm auth =="
45+
46+
credentials_path = Pathname.new(Gem.configuration.credentials_path)
47+
unless credentials_path.exist? && credentials_path.read.include?(":rubygems_api_key:")
48+
abort "❌ Not logged in to RubyGems — run `gem signin`"
49+
end
50+
puts "✅ RubyGems: credentials found at #{credentials_path}"
51+
52+
unless system("npm whoami", out: File::NULL, err: File::NULL)
53+
abort "❌ Not logged in to npm — run `npm login`"
54+
end
55+
puts "✅ npm: logged in as #{`npm whoami`.strip}"
56+
end
57+
4258
def write_version
4359
if Gem::Version.new(version) <= Gem::Version.new(Marksmith::VERSION)
4460
abort "❌ New version (#{version}) must be greater than #{Marksmith::VERSION}"
@@ -104,7 +120,6 @@ class Release
104120
def push_npm_package
105121
puts "== Pushing npm package =="
106122

107-
abort "❌ Must be logged in to npm" unless system "npm whoami"
108123
abort "❌ npm publish failed" unless system "npm publish"
109124

110125
puts "✅ Successfully published npm release"

dist/marksmith-core.esm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
Marksmith 0.5.0
2+
Marksmith 0.5.1
33
*/
44
import '@github/markdown-toolbar-element';
55
import { Controller } from '@hotwired/stimulus';

dist/marksmith.esm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
Marksmith 0.5.0
2+
Marksmith 0.5.1
33
*/
44
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
55
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");

lib/marksmith/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Marksmith
2-
VERSION = "0.5.0"
2+
VERSION = "0.5.1"
33
end

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "MIT",
66
"homepage": "https://github.com/avo-hq/marksmith",
77
"module": "app/assets/builds/marksmith.esm.js",
8-
"version": "0.5.0",
8+
"version": "0.5.1",
99
"exports": {
1010
".": "./dist/marksmith.esm.js",
1111
"./core": "./dist/marksmith-core.esm.js"

0 commit comments

Comments
 (0)