Skip to content

Commit

Permalink
feat: new code addition
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Forattini committed Apr 26, 2022
1 parent 1cad69e commit 47b5c5d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/service-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,15 @@ jobs:
if: steps.node_setup.outputs.has_releaserc == 'false'
with:
result-encoding: string
script: return require('./.ff/src/steps/generate-releaserc')({})
script: |
return require('./.ff/src/steps/generate-releaserc')({
files: [ 'package.json' ]
})
- name: .releaserc
run: cat .releaserc.json
run: |
cat .releaserc.json
touch changelog.md
- name: Semantic Release dependencies
run: |
Expand All @@ -218,11 +223,6 @@ jobs:
@semantic-release/commit-analyzer \
@semantic-release/release-notes-generator
- name: .releaserc
run: |
cat .releaserc.json
cat package.json
- name: Release version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
13 changes: 6 additions & 7 deletions src/steps/generate-releaserc.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
const fs = require("fs");
const path = require("path");

module.exports = function ({} = {}) {
module.exports = function ({ files = [] } = {}) {
let releaseFile = {
branches: [
"+([0-9])?(.{+([0-9]),x}).x",
"main",
"master",
"next",
"bug/*",
"bugfix/*",
"release/*",
"feature/*",
"next-major",
{
name: "beta",
Expand All @@ -17,10 +21,6 @@ module.exports = function ({} = {}) {
name: "alpha",
prerelease: true,
},
{
name: "feature/*",
prerelease: true,
},
],
plugins: [
"@semantic-release/commit-analyzer",
Expand All @@ -35,8 +35,7 @@ module.exports = function ({} = {}) {
"docs",
"readme.md",
"changelog.md",
"package.json",
"requirements.txt",
...files,
],
message:
"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}",
Expand Down

0 comments on commit 47b5c5d

Please sign in to comment.