Skip to content

Instantly share code, notes, and snippets.

@bradwestfall
Last active April 26, 2017 18:37

Revisions

  1. bradwestfall revised this gist Apr 26, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion NPM Publish.md
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,8 @@ npm version major -m 'Git commit message'
    Push to GitHub

    ```sh
    git push && git push --tags
    //git push && git push --tags
    git push origin master --tags
    ```

    Publish to NPM
  2. bradwestfall revised this gist Jul 13, 2016. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions NPM Publish.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,10 @@
    Bump Semver - https://docs.npmjs.com/cli/version

    ```sh
    # One of these
    npm version patch -m 'Git commit message'
    npm version minor -m 'Git commit message'
    npm version major -m 'Git commit message'
    ```

    Push to GitHub
  3. bradwestfall created this gist Feb 23, 2016.
    17 changes: 17 additions & 0 deletions NPM Publish.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    Bump Semver - https://docs.npmjs.com/cli/version

    ```sh
    npm version patch -m 'Git commit message'
    ```

    Push to GitHub

    ```sh
    git push && git push --tags
    ```

    Publish to NPM

    ```sh
    npm publish
    ```