mirror of
				https://github.com/microsoft/playwright.git
				synced 2025-06-26 21:40:17 +00:00 
			
		
		
		
	
		
			
				
	
	
	
		
			1.8 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			1.8 KiB
		
	
	
	
	
	
	
	
Releasing is a 3-step process.
1. Create a release branch
- On your local machine, create a new branch 
release-X.Ybased off the "cutting" commit and land achore: mark vX.Y.Zin the local branch: 
git checkout mastergit checkout -b release-X.Y./utils/update_version.js vX.Ynpm run docgit commit -am 'chore: mark vX.Y.Z'
- Push branch to the upstream
 
git push upstream release-X.Y
Once release branch is pushed, it's last commit will be picked up by our CI/CD:
- make sure commit passes all the bots. If there are any failures, carefully inspect failures to see if these are flakes.
 - the 
publish_canaryworkflow will publish a@nextversion for the commit - this will be our release candidate. Go manually to it's page on NPM to see what it looks like. Try installing locally. 
2. Prepare release notes
- Use "draft new release tag".
 - Version starts with "v", e.g. "vX.Y.Z".
 - Run 
./utils/draft_release_notes.shand fill in the "TODO" in generated text. - When making links to the API, copy actual links from GitHub, and not from 
api.mdsource - these might be incorrect.- Before publishing, replace 
blob/master/docswithblob/vX.Y.Z/docsin all the links. 
 - Before publishing, replace 
 - Use "Save Draft", not "Publish".
 
3. Publish Release
- Hit "publish release"
 
Once release is published, the publish_release will kick in and publish package version on NPM.
4. Bump version on trunk to next
- Bump a version to the new 
-nextversion and land achore: cut vX.Y.Z-post versioncommit on trunk 
./utils/update_version.js vX.Y.Z-next