Skip to content

Commit d853ec6

Browse files
authored
Merge pull request #29 from CodinGame/allow-release-PR-env
Allow releasing a prerelease version
2 parents bf8466c + 76d12f1 commit d853ec6

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.github/workflows/check_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
fetch-depth: 0
1616
- uses: actions/setup-node@v3
1717
- run: npm ci
18-
- run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD
18+
- run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
1919
check:
2020
name: Check build
2121
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Release
22

3-
on:
4-
push:
5-
branches: [main]
3+
on: workflow_dispatch
64

75
jobs:
86
release:

release.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
module.exports = {
22
...require('@codingame/semantic-release-config'),
33
branches: [
4-
'main'
4+
'main',
5+
{ name: '*', channel: 'next', prerelease: true }
56
],
67
plugins: [
78
'@semantic-release/commit-analyzer',

0 commit comments

Comments
 (0)