- Run with one command and do not rely on error exit codes to stop the process when a release is not necessary - Break `index.js` in smaller modules in order to improve testability and simplify the code - Add several missing unit and integration tests to reach 100% coverage - Integration tests now test end to end, including publishing to Github (with http://www.mock-server.com on Docker) - Use `tj/commander.js` to print an help message, verify and parse CLI arguments - Semantic-release can now be called via Javascript API: `require('semantic-release')(options)` - Remove npmlog dependency and add more log messages - Logger is now passed to plugins - Add debug logs with `visionmedia/debug`. `debug` is enabled for both semantic-release and plugins with `--debug` - Use `kevva/npm-conf` in place of the deprecated `npm/npmconf` - Pass lastRelease, nextRelease and commits to generate-notes plugin - In dry-run mode, print the release note instead of publishing it to Github as draft, and skip the CI verifications - The dry-run mode does not require npm and Github TOKEN to be set anymore and can be run locally BREAKING CHANGE: Semantic-Release must now be executed with `semantic-release` instead of `semantic-release pre && npm publish && semantic-release post`. BREAKING CHANGE: The `semantic-release` command now returns with exit code 0 on expected exception (no release has to be done, running on a PR, gitHead not found, other CI job failed etc...). It only returns with 1 when there is an unexpected error (code error in a plugin, plugin not found, git command cannot be run etc..). BREAKING CHANGE: Calling the `semantic-release` command with unexpected argument(s) now exit with 1 and print an help message. BREAKING CHANGE: Semantic-Release does not rely on `npmlog` anymore and the log level cannot be configured. Debug logs can be activated with CLI option `--debug` or with environment variable `DEBUG=semantic-release:*` BREAKING CHANGE: The CLI options `--debug` doesn't enable the dry-run mode anymore but activate the debugs. The dry run mode is now set with the CLI command `--dry-run` or `-d`.
		
			
				
	
	
		
			136 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			136 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| 
 | |
| # Created by https://www.gitignore.io/api/macos,windows,linux,node
 | |
| 
 | |
| ### Linux ###
 | |
| *~
 | |
| 
 | |
| # temporary files which can be created if a process still has a handle open of a deleted file
 | |
| .fuse_hidden*
 | |
| 
 | |
| # KDE directory preferences
 | |
| .directory
 | |
| 
 | |
| # Linux trash folder which might appear on any partition or disk
 | |
| .Trash-*
 | |
| 
 | |
| # .nfs files are created when an open file is removed but is still being accessed
 | |
| .nfs*
 | |
| 
 | |
| ### macOS ###
 | |
| *.DS_Store
 | |
| .AppleDouble
 | |
| .LSOverride
 | |
| 
 | |
| # Icon must end with two \r
 | |
| Icon
 | |
| 
 | |
| # Thumbnails
 | |
| ._*
 | |
| 
 | |
| # Files that might appear in the root of a volume
 | |
| .DocumentRevisions-V100
 | |
| .fseventsd
 | |
| .Spotlight-V100
 | |
| .TemporaryItems
 | |
| .Trashes
 | |
| .VolumeIcon.icns
 | |
| .com.apple.timemachine.donotpresent
 | |
| 
 | |
| # Directories potentially created on remote AFP share
 | |
| .AppleDB
 | |
| .AppleDesktop
 | |
| Network Trash Folder
 | |
| Temporary Items
 | |
| .apdisk
 | |
| 
 | |
| ### Node ###
 | |
| # Logs
 | |
| logs
 | |
| *.log
 | |
| npm-debug.log*
 | |
| yarn-debug.log*
 | |
| yarn-error.log*
 | |
| 
 | |
| # Runtime data
 | |
| pids
 | |
| *.pid
 | |
| *.seed
 | |
| *.pid.lock
 | |
| 
 | |
| # Directory for instrumented libs generated by jscoverage/JSCover
 | |
| lib-cov
 | |
| 
 | |
| # Coverage directory used by tools like istanbul
 | |
| coverage
 | |
| 
 | |
| # nyc test coverage
 | |
| .nyc_output
 | |
| 
 | |
| # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
 | |
| .grunt
 | |
| 
 | |
| # Bower dependency directory (https://bower.io/)
 | |
| bower_components
 | |
| 
 | |
| # node-waf configuration
 | |
| .lock-wscript
 | |
| 
 | |
| # Compiled binary addons (http://nodejs.org/api/addons.html)
 | |
| build/Release
 | |
| 
 | |
| # Dependency directories
 | |
| node_modules/
 | |
| jspm_packages/
 | |
| 
 | |
| # Typescript v1 declaration files
 | |
| typings/
 | |
| 
 | |
| # Optional npm cache directory
 | |
| .npm
 | |
| 
 | |
| # Optional eslint cache
 | |
| .eslintcache
 | |
| 
 | |
| # Optional REPL history
 | |
| .node_repl_history
 | |
| 
 | |
| # Output of 'npm pack'
 | |
| *.tgz
 | |
| 
 | |
| # Yarn Integrity file
 | |
| .yarn-integrity
 | |
| 
 | |
| # dotenv environment variables file
 | |
| .env
 | |
| 
 | |
| 
 | |
| ### Windows ###
 | |
| # Windows thumbnail cache files
 | |
| Thumbs.db
 | |
| ehthumbs.db
 | |
| ehthumbs_vista.db
 | |
| 
 | |
| # Folder config file
 | |
| Desktop.ini
 | |
| 
 | |
| # Recycle Bin used on file shares
 | |
| $RECYCLE.BIN/
 | |
| 
 | |
| # Windows Installer files
 | |
| *.cab
 | |
| *.msi
 | |
| *.msm
 | |
| *.msp
 | |
| 
 | |
| # Windows shortcuts
 | |
| *.lnk
 | |
| 
 | |
| # End of https://www.gitignore.io/api/macos,windows,linux,node
 | |
| 
 | |
| package-lock.json
 | |
| yarn.lock
 | |
| 
 | |
| # Registry tests
 | |
| test/helpers/registry/couch
 | |
| test/helpers/registry/data
 |