mirror of
				https://github.com/Mibew/simple-icons.git
				synced 2025-10-31 18:41:07 +03:00 
			
		
		
		
	Add "pretest" and "posttest" scripts
This commit is contained in:
		
							parent
							
								
									1d57dea52c
								
							
						
					
					
						commit
						046c5e8b45
					
				| @ -17,12 +17,8 @@ jobs: | |||||||
|     - name: "Test package" |     - name: "Test package" | ||||||
|       language: node_js |       language: node_js | ||||||
|       node_js: 8 |       node_js: 8 | ||||||
|       before_script: |  | ||||||
|         - npm run prepublishOnly |  | ||||||
|       script: |       script: | ||||||
|         - npm run test |         - npm run test | ||||||
|       after_script: |  | ||||||
|         - npm run postpublish |  | ||||||
| 
 | 
 | ||||||
|     - stage: deploy |     - stage: deploy | ||||||
|       name: "NPM Package" |       name: "NPM Package" | ||||||
|  | |||||||
| @ -27,6 +27,8 @@ | |||||||
|     "svglint": "svglint icons/* --ci", |     "svglint": "svglint icons/* --ci", | ||||||
|     "prepublishOnly": "node scripts/prepublish.js", |     "prepublishOnly": "node scripts/prepublish.js", | ||||||
|     "postpublish": "rm icons/*.js index.js", |     "postpublish": "rm icons/*.js index.js", | ||||||
|     "test": "jest" |     "test": "jest", | ||||||
|  |     "pretest": "npm run prepublishOnly", | ||||||
|  |     "posttest": "npm run postpublish" | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user