Skip to content

Instantly share code, notes, and snippets.

View favoyang's full-sized avatar

Favo Yang favoyang

View GitHub Profile
@favoyang
favoyang / ci.yml
Last active April 20, 2020 13:25
GitHub actions to automate semantic-release with upm branch. https://medium.com/openupm/how-to-maintain-upm-package-part-2-f352fbf5f87c#6bf4
name: CI
on:
push:
branches:
- master
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
{
"tagFormat": "v${version}",
"plugins": [
["@semantic-release/commit-analyzer", { "preset": "angular" }],
"@semantic-release/release-notes-generator",
["@semantic-release/changelog", { "preset": "angular" }],
["@semantic-release/npm", { "npmPublish": false }],
["@semantic-release/git", {
"assets": ["package.json", "CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"