Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish relay releases from github actions (#3669)
Summary: We already publishing all versions as `main` to NPM. Let's also integrate this process with our tags that we're using for releases. - For all pushed commits to the `main` branch everything stays the same - If a new tag is published, the action will build a release version (using a tag name) - if GitHub tag contains `-rc.` suffix, `--tag=dev` will be used during `npm publish`. Pull Request resolved: #3669 Test Plan: Tested in different repo: - verified that pushes to `main` repo published with `RELEASE_COMMIT_SHA` - verified that `git push --tags` triggering `Build release version` job - verified that `publish to npm` works and passed `--main` tag for pushes to `main` branch. `--dev` tag for tag pushes with `-rc.` string in the version, no tags for other versions Verified locally: npm_package_version=v13.0.0-rc.0 yarn gulp release works. **Static Docs Preview: relay** |[Full Site](https://our.intern.facebook.com/intern/staticdocs/eph/1638559587/relay/)| |**Modified Pages**| Reviewed By: rbalicki2 Differential Revision: D32835517 Pulled By: alunyov fbshipit-source-id: 15d207214216c4cf5aba3f36bfd0595cdd83119c
- Loading branch information