Skip to content

Commit

Permalink
ci: semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Sep 3, 2021
1 parent 2603c67 commit 480765c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,22 @@
name: Release
on:
push:
branches:
- main
- next
- beta
- "*.x" # maintenance releases such as 2.x

jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
13 changes: 12 additions & 1 deletion package.json
Expand Up @@ -114,5 +114,16 @@
}
]
},
"runkitExampleFilename": "example.js"
"runkitExampleFilename": "example.js",
"release": {
"branches": [
"+([0-9]).x",
"main",
"next",
{
"name": "beta",
"prerelease": true
}
]
}
}

0 comments on commit 480765c

Please sign in to comment.