Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

[RAINCATCH-1021] release process #96

Merged
merged 39 commits into from
Aug 30, 2017
Merged

Conversation

paolobueno
Copy link
Contributor

@paolobueno paolobueno commented Aug 24, 2017

Motivation

Setup publishing to feedhenry templates for apps and npm publishing for modules

Progress

  • Add publishing to templates for demo-server
  • Add npm publishing for remainder packages
  • Add scripts to test publishing in travis
  • Documentation

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling fc285dc on RAINCATCH-1021-release-process into ** on master**.

1 similar comment
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling fc285dc on RAINCATCH-1021-release-process into ** on master**.

var ghpages = require('gh-pages');
var path = require('path');
var fs = require('fs');
var args = require('yargs')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work! Great to have command line tool for publishing packages.

var appName = args._[0];

var appInfo = {
server: {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Suggestion] It will be cool to have this as separate json later.
Nothing really needed. Just suggestion.

add: true,
remote: 'origin',
repo: target.repo,
user: { name: "Wojciech Trocki", email: "wtrocki@redhat.com" },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put my names to check if github user will be mapped (it works).
We may allow to override that? I'm not sure as mostly releases will be done by single person.

branch: version,
dotfiles: true,
//Only add, and never remove existing files
add: true,
Copy link
Member

@wtrocki wtrocki Aug 24, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was just using this for spike how repo size will change. add: true adds additional commit on top of the current changes. This will allow developers to see differences between releases. Not sure if we need it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 considering we'll use branches named by version I don't think there's much difference in not having the add flag

@@ -0,0 +1,38 @@
#!/bin/bash
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 Awesome change! Really really good that we can test publishing without populating npm!

repo: 'git@github.com:feedhenry-templates/wfm-server.git'
},
mobile: {
path: 'demo/mobile',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How this path is being executed? Curious as mobile is outside this repository.
Do you see us moving mobile to this repo by the time ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was only testing this with demo/server for now, I was hoping that if we reuse this same script from ~/raincatcher-angularjs/core/scripts, we mess around with the pwd so the relative path is correct.

@paolobueno paolobueno force-pushed the RAINCATCH-1021-release-process branch 2 times, most recently from 4899bb9 to 66d7ad8 Compare August 25, 2017 13:02
@paolobueno paolobueno force-pushed the RAINCATCH-1021-release-process branch from 96423b9 to 968f3b1 Compare August 28, 2017 17:02
@paolobueno
Copy link
Contributor Author

paolobueno commented Aug 28, 2017

To verify:

NPM publish for packages:

  • npm run publish:test
  • verify that publish finishes correctly and browser window is opened showling local registry docker image
  • download the contents of a package using npm pack @raincatcher/{module-name} --registry=http://localhost:{generated port}
  • verify that the contents of the package contain all required files (in particular compiled js files)

Templates publishing for apps

  • fork https://github.com/feedhenry-templates/wfm-server to your personal github account
  • npm run publish:demo-server -- -o {your github username} to push to that fork
  • during publishing, supply lerna with a version bump
  • verify that in your fork the correct branch is created with the contents of the server demo app

@paolobueno
Copy link
Contributor Author

@wtrocki this is ready for verification

@paolobueno paolobueno changed the title WIP [RAINCATCH-1021] release process [RAINCATCH-1021] release process Aug 29, 2017
@@ -150,20 +150,21 @@ We recommend users to write their code in TypeScript, especially if their new Ra

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing update to common folder in folder structure

@@ -1,6 +1,6 @@
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Package is missing gitignore. js files are staged after release process.

},
"publish": {
"ignore": "@raincatcher/demo-server",
"exact": true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -0,0 +1,10 @@
#!/bin/bash
set -ev
npm run clean
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should also remove node_modules here and install stuff again to make sure that everything is clear.

@wtrocki
Copy link
Member

wtrocki commented Aug 29, 2017

@paolobueno I coudn't verify second part due to

lerna ERR! execute ../../cloud/auth/node_modules/@types/express-session/index.d.ts(20,7): error TS2374: Duplicate string index signature.

@coveralls
Copy link

coveralls commented Aug 29, 2017

Coverage Status

Changes Unknown when pulling 262aa58 on RAINCATCH-1021-release-process into ** on master**.

@paolobueno paolobueno merged commit 1e63c80 into master Aug 30, 2017
@paolobueno paolobueno deleted the RAINCATCH-1021-release-process branch August 30, 2017 14:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants