Skip to content

Commit

Permalink
Move from gren to np (ampproject#263)
Browse files Browse the repository at this point in the history
* gren => np

* Remove Changelog until further notice

* Updated directions
  • Loading branch information
kristoferbaxter authored Feb 1, 2019
1 parent 59bb387 commit bfb8650
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 59 deletions.
42 changes: 0 additions & 42 deletions CHANGELOG.md

This file was deleted.

11 changes: 4 additions & 7 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
# Releasing

Most of the manual steps for releasing this library are (hopefully) abstracted away by
leveraging `github-release-notes` to automatically generate an updated `CHANGELOG.md`
leveraging `np` to automatically update `package.json` and generate an updated changelist
based on commits since the last active tag.

### Release Pre-Requisites:

1. Follow the [directions](https://github.com/github-tools/github-release-notes#setup)
to setup a `Github token` for release scripts to leverage.
2. Enable [two-factor authentication for your NPM account](https://docs.npmjs.com/configuring-two-factor-authentication).
3. Ensure you are part of the 'Administration' Group for the NPM `@ampproject` organization.
1. Enable [two-factor authentication for your NPM account](https://docs.npmjs.com/configuring-two-factor-authentication).
2. Ensure you are part of the 'Administration' Group for the NPM `@ampproject` organization.

### Release an Update:

1. Ensure all tests are passing `npm run test`. The release scripts will not proceed
if any test fails.
2. Bump the [semantic version](https://semver.org/) in `package.json`.
3. Execute in your terminal: `npm run release`.
2. Execute in your terminal: `npm run release`.
12 changes: 2 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,7 @@
"build": "cross-env MINIFY_BUNDLE=true npm run ~rollup",
"presize": "npm run build",
"size": "bundlesize",
"release:apply": "git add .",
"release:commit": "cross-var git commit -m 'Release $npm_package_version'",
"release:tag": "cross-var git tag -a v$npm_package_version -m '$npm_package_version'",
"release:push": "git push origin master --no-verify",
"release:gren": "gren release --override",
"release:changelog": "gren changelog --override",
"release:push-tag": "git push origin v$npm_package_version --no-verify",
"prerelease": "npm install",
"release": "npm-run-all --serial size release:apply release:commit release:tag release:gren release:changelog release:apply release:commit release:push release:push-tag"
"release": "np"
},
"dependencies": {
"dompurify": "1.0.8"
Expand All @@ -61,10 +53,10 @@
"cross-env": "5.2.0",
"cross-var": "1.1.0",
"esm": "3.2.0",
"github-release-notes": "0.17.0",
"husky": "1.3.1",
"lint-staged": "8.1.1",
"magic-string": "0.25.1",
"np": "4.0.2",
"npm-run-all": "4.1.5",
"polka": "0.5.1",
"prettier": "1.16.3",
Expand Down

0 comments on commit bfb8650

Please sign in to comment.