Skip to content

Commit 6949549

Browse files
authored
Merge pull request #471 from platanus/release-beta-2-and-configure-npm-auto-deploy
Release beta 2 and configure npm auto deploy
2 parents bf6b3a2 + 70c6516 commit 6949549

File tree

6 files changed

+26
-11
lines changed

6 files changed

+26
-11
lines changed

.circleci/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ jobs:
121121
gem build activeadmin_addons.gemspec
122122
version_tag=$(git describe --tags)
123123
gem push activeadmin_addons-${version_tag#v}.gem
124+
- run:
125+
name: Publish to npm
126+
command: |
127+
npm set //registry.npmjs.org/:_authToken=$NPM_TOKEN
128+
npm publish
124129
125130
workflows:
126131
version: 2

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
44

55
### Unreleased
66

7+
-
8+
9+
### 2.0.0.beta-2
10+
711
#### Breaking changes
812
* Defines required ruby version to >=2.7.0 [#460](https://github.com/platanus/activeadmin_addons/pull/460)
913
* Nested and search select now use the name of the association instead of the name of id [#462](https://github.com/platanus/activeadmin_addons/pull/462)
@@ -12,6 +16,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1216
#### Fixes
1317
* Include only items that belong to parent when using collection option in a nested input level [#463](https://github.com/platanus/activeadmin_addons/pull/463)
1418

19+
### 2.0.0.beta-1
20+
21+
Skipped
22+
1523
### 2.0.0.beta-0
1624

1725
#### Breaking changes

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ GIT
88
PATH
99
remote: .
1010
specs:
11-
activeadmin_addons (2.0.0.beta.0)
11+
activeadmin_addons (2.0.0.beta.2)
1212
railties
1313
redcarpet
1414
require_all

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -239,14 +239,16 @@ Use default active_admin theme.
239239

240240
## Publishing
241241

242-
On master/main branch...
243-
244-
1. Change `VERSION` in `lib/activeadmin_addons/version.rb`.
245-
2. Change `Unreleased` title to current version in `CHANGELOG.md`.
246-
3. Run `bundle install`.
247-
4. Commit new release. For example: `Releasing v1.0.0`.
248-
5. Create tag. For example: `git tag v1.0.0`.
249-
6. Push tag. For example: `git push origin v1.0.0`.
242+
On a new branch:
243+
244+
1. Change `VERSION` in `lib/activeadmin_addons/version.rb`. Note that beta versions should have a `.beta` suffix (e.g. `1.0.0.beta.1`).
245+
2. Change `"version"` in `package.json` to the same version. Note that beta versions should have a `-beta` suffix (e.g. `1.0.0-beta.1`).
246+
3. Change `Unreleased` title to current version in `CHANGELOG.md`.
247+
4. Run `bundle install`.
248+
5. Open a new PR with those changes.
249+
6. Once the PR is merged, checkout to master and pull the changes.
250+
8. Create tag. For example: `git tag v1.0.0`.
251+
9. Push tag. For example: `git push origin v1.0.0`. This will trigger the CI to publish the new version to npm and rubygems.
250252

251253
## Contributing
252254

lib/activeadmin_addons/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module ActiveadminAddons
2-
VERSION = "2.0.0.beta.0"
2+
VERSION = "2.0.0.beta.2"
33
end

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "activeadmin_addons",
3-
"version": "2.0.0-beta.1",
3+
"version": "2.0.0-beta.2",
44
"description": "Set of addons to help with the activeadmin ui",
55
"main": "src/all.js",
66
"files": [

0 commit comments

Comments
 (0)