Skip to content

Commit 5299501

Browse files
Håvard Moenmartinsolberg
authored andcommitted
feat!: change to mjs extension for commitlint config
BREAKING CHANGE: commitlint.config.js is not supported anymore, please use .mjs extension
1 parent 00d5925 commit 5299501

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/workflow.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@ jobs:
8989
id: set_config
9090
shell: bash
9191
run: |
92-
if [ -f "commitlint.config.js" ]
92+
if [ -f "commitlint.config.mjs" ]
9393
then
9494
echo "Using callers configuration for commitlint"
95-
echo "commitlintconfig=commitlint.config.json" >> $GITHUB_OUTPUT
95+
echo "commitlintconfig=commitlint.config.mjs" >> $GITHUB_OUTPUT
9696
else
9797
echo "Using workflow configuration for commitlint"
98-
echo "commitlintconfig=.github-workflow-semantic-release/commitlint.config.js" >> $GITHUB_OUTPUT
98+
echo "commitlintconfig=.github-workflow-semantic-release/commitlint.config.mjs" >> $GITHUB_OUTPUT
9999
fi
100100
- uses: wagoid/[email protected]
101101
id: lint
@@ -196,7 +196,7 @@ jobs:
196196
run: npm ci
197197
- uses: codfish/[email protected]
198198
id: release
199-
env:
199+
env:
200200
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
201201
- name: Get version
202202
id: version
@@ -232,11 +232,10 @@ jobs:
232232
echo "release-notes<<EOF" >> $GITHUB_OUTPUT
233233
echo "${{ steps.release.outputs.release-notes }}" >> $GITHUB_OUTPUT
234234
echo "EOF" >> $GITHUB_OUTPUT
235-
235+
236236
echo "type=${{ steps.release.outputs.type }}" >> $GITHUB_OUTPUT
237237
echo "channel=${{ steps.release.outputs.channel }}" >> $GITHUB_OUTPUT
238238
echo "git-head=${{ steps.release.outputs.git-head }}" >> $GITHUB_OUTPUT
239239
echo "git-tag=${{ steps.release.outputs.git-tag }}" >> $GITHUB_OUTPUT
240240
echo "name=${{ steps.release.outputs.name }}" >> $GITHUB_OUTPUT
241241
fi
242-
File renamed without changes.

0 commit comments

Comments
 (0)