GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Modularization Release Process · Issue #1411 · googleapis/google-cloud-node

Modularization Release Process #1411

New issue
Copy link
New issue
Copy link
Closed
Closed
Modularization Release Process#1411
Copy link
Assignees
stephenplusplus
Labels
core

Description

@stephenplusplus
stephenplusplus
opened on Jul 7, 2016
Issue body actions

Here's the current plan regarding how to publish updates to the core gcloud module or the future @gcloud/{service} sub-modules. Thoughts very welcome!


An npm run script will be created to release a module:

$ npm run release [SERVICE_NAME] --major|minor|patch

Here's what happens if you wanted to publish the core gcloud module with a major update.

$ npm run release --major

# runs:
rm -rf node_modules && npm install
npm run lint
npm run test
npm run system-test
npm version major
rm -rf node_modules && npm publish
git push origin master --follow-tags

Here's what happens if you wanted to release a major update to the BigQuery API.

$ npm run release bigquery --major

# runs:
cd lib/bigquery
rm -rf node_modules && npm install
npm run lint
npm run test
npm run system-test
npm version major
rm -rf node_modules && npm publish
git push origin master --follow-tags

# Because it was a MAJOR increment (breaking changes):
npm uninstall --save @gcloud/bigquery
npm install --save @gcloud/bigquery # to depend on the new release
git commit -am 'Update @gcloud/bigquery'
npm run release [minor|major] # depending on if gcloud-node is < or > 1.0

Here's what happens if you wanted to release a patch update to the BigQuery API.

$ npm run release bigquery --patch

# runs:
cd lib/bigquery
rm -rf node_modules && npm install
npm run lint
npm run test
npm run system-test
npm version patch
rm -rf node_modules && npm publish
git push origin master --follow-tags

How about the docs?

The core package will no longer have its own JSON files. Instead, each service will have a directory in gh-pages that the core package doc pages will pull from:

$ git checkout gh-pages
$ ls
  docs
  |_ json
    |_ { existing version directories for pre-modularization JSON files }
    |_ bigquery
      |_ v0.1.0
        |_ dataset.json
        |_ index.json
        |_ job.json
        |_ table.json
        |_ types.json

How does the docs site load the correct JSON files from the modules?

Still thinking! Possible tools that can help:

  • JSON.parse(http://gitnpm.com/gcloud/{$scope.activeVersion}/json/dependencies)
  • The semver client-side library

Activity

  1. stephenplusplus
    added
    core
    on Jul 7, 2016
  2. callmehiphop commented on Jul 7, 2016

    @callmehiphop
    callmehiphop
    on Jul 7, 2016
    Contributor
    More actions

    Overall I think it looks great, I only have a couple things to add in regards to the docs.

    The core package will no longer have its own JSON files. Instead, each service will have a directory in gh-pages that the core package doc pages will pull from:

    What about the docs in lib/index.js?

    How does the docs site load the correct JSON files from the modules?

    I think this should be a gcloud-common discussion? (If it isn't already)

  3. jgeewax commented on Jul 8, 2016

    @jgeewax
    jgeewax
    on Jul 8, 2016
    Contributor
    More actions
    • Could we use a term other than "release"? To some people this might mean just code changes, to others it might mean publish things to NPM. It'd be nice if it was extra clear about what's happening...
    • Can we use -- syntax for the major/minor/patch since it's a modifier ? (npm run <verb> bigquery --minor)
  4. stephenplusplus commented on Jul 8, 2016

    @stephenplusplus
    stephenplusplus
    on Jul 8, 2016
    ContributorAuthor
    More actions

    Could we use a term other than "release"?

    I chose it because it's all-encompassing, as opposed to just "build" or "publish", since it does both of those, and more. This is only a command that will be run by a maintainer of the library, so before they run it, they will have been told or read what it does. At its worst, if it is ambiguous, that might work in our favor in that the person running the command will check what it does. I'm open to ideas, though, if you can think of a better name.

  5. stephenplusplus commented on Jul 8, 2016

    @stephenplusplus
    stephenplusplus
    on Jul 8, 2016
    ContributorAuthor
    More actions

    Can we use -- syntax for the major/minor/patch since it's a modifier ? (npm run bigquery --minor)

    Examples updated 👍

  6. jgeewax commented on Jul 8, 2016

    @jgeewax
    jgeewax
    on Jul 8, 2016
    Contributor
    More actions

    Also https://github.com/sindresorhus/np

  7. stephenplusplus commented on Sep 2, 2016

    @stephenplusplus
    stephenplusplus
    on Sep 2, 2016
    ContributorAuthor
    More actions

    We have a publish script now which handles publishing an individual module. The chain effect originally discussed here, where publishing one module triggers another, is probably a little dangerous. What we have now is working so far, so until we see need to improve, let's close this one.

  8. stephenplusplus
    closed this as completedon Sep 2, 2016
  9. JustinBeckwith
    assigned
    stephenplusplus
    on Feb 1, 2021
  10. miguelvelezsa
    added 2 commits that reference this issue on Jul 23, 2025

    fix(deps): update dependency protobufjs to v7.2.1 (#1411)

    6ec6f25

    chore(main): release 3.5.5 (#1416)

    aa46733
  11. sofisl
    added 3 commits that reference this issue on Feb 24, 2026

    chore: use repo metadata to populate nodejs CODEOWNERS (#1411)

    037ec84

    chore: release 5.8.1 (#1411)

    f284ca3

    chore: release 5.10.0 (#1411)

    e4e885c
  12. thiyaguk09
    added a commit that references this issue on Mar 18, 2026

    chore: release 5.8.1 (googleapis#1411)

    4971ece
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @stephenplusplus
    stephenplusplus

Labels

core

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402792 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.