fix: Separate tag and non-tag build pipelines
This commit is contained in:
		
							parent
							
								
									550eb0234b
								
							
						
					
					
						commit
						8a8a62792a
					
				
					 2 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
					@ -27,6 +27,8 @@ deploy_to_tags:
 | 
				
			||||||
  stage: deploy
 | 
					  stage: deploy
 | 
				
			||||||
  needs: ['test']
 | 
					  needs: ['test']
 | 
				
			||||||
  image: "node:15.0"
 | 
					  image: "node:15.0"
 | 
				
			||||||
 | 
					  except:
 | 
				
			||||||
 | 
					    - tags
 | 
				
			||||||
  script:
 | 
					  script:
 | 
				
			||||||
    - npm install
 | 
					    - npm install
 | 
				
			||||||
    - npx semantic-release
 | 
					    - npx semantic-release
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -25,7 +25,9 @@
 | 
				
			||||||
  "release": {
 | 
					  "release": {
 | 
				
			||||||
    "plugins": [
 | 
					    "plugins": [
 | 
				
			||||||
      "@semantic-release/commit-analyzer",
 | 
					      "@semantic-release/commit-analyzer",
 | 
				
			||||||
      "@semantic-release/git"
 | 
					      ["@semantic-release/git", {
 | 
				
			||||||
 | 
					        "message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}"
 | 
				
			||||||
 | 
					      }]
 | 
				
			||||||
    ],
 | 
					    ],
 | 
				
			||||||
    "publish": [
 | 
					    "publish": [
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue