Skip to content

Commit

Permalink
fix: empty commit for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Forattini committed Jul 12, 2022
1 parent f977feb commit ced6f9c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
22 changes: 4 additions & 18 deletions .github/workflows/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,29 +148,15 @@ jobs:

# release
- name: Create .releaserc.json
uses: filipeforattini/ff-iac-github-actions/.github/actions/generate-releaserc-file@main
if: steps.analysis.outputs.features_has_releaserc == false
id: releaserc-creation
uses: filipeforattini/ff-iac-github-actions/.github/actions/semantic-release-pack@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
createReleaseRCIfNotExists: true
defaultBranch: ${{ inputs.mainBranch }}
files: '["package.json","dist/**/*.{js,css}"]'
npmPlugin: true

- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm i -g -D \
semantic-release \
@semantic-release/git \
@semantic-release/npm \
@semantic-release/github \
@semantic-release/changelog \
@semantic-release/commit-analyzer \
@semantic-release/release-notes-generator
echo -e "\n\nINFO semantic-release version = $(semantic-release -v)\n\n"
semantic-release
- name: Current Version
id: versioning
run: |
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
"main": "",
"scripts": {
"commit": "npm run build && git pull && git commit --allow-empty -am \"fix: empty commit for testing\" && git push",
"build-composition": "ACTION_NAME=setup-binaries mkdir -p .github/actions/$ACTION_NAME && cp src/actions/$ACTION_NAME/action.yml .github/actions/$ACTION_NAME/action.yml",
"build-action-js": "mkdir -p .github/actions/generate-releaserc-file && ncc build src/actions/$ACTION_NAME/index.js -m -q -s -o .github/actions/$ACTION_NAME && rm -f .github/actions/$ACTION_NAME/action.yml && cp src/actions/$ACTION_NAME/action.yml .github/actions/$ACTION_NAME/action.yml",
"build": "npm run action:pipeline-config-scrapper && npm run action:setup-binaries && npm run action:static-code-analysis && npm run action:generate-releaserc-file && npm run action:semantic-release",
"build": "npm run action:pipeline-config-scrapper && npm run action:setup-binaries && npm run action:static-code-analysis && npm run action:generate-releaserc-file && npm run action:semantic-release && npm run action:semantic-release-pack",
"action:pipeline-config-scrapper": "ACTION_NAME=pipeline-config-scrapper npm run build-action-js",
"action:setup-binaries": "mkdir -p .github/actions/setup-binaries && cp src/actions/setup-binaries/action.yml .github/actions/setup-binaries/action.yml",
"action:static-code-analysis": "mkdir -p .github/actions/static-code-analysis && cp src/actions/static-code-analysis/action.yml .github/actions/static-code-analysis/action.yml",
"action:generate-releaserc-file": "ACTION_NAME=generate-releaserc-file npm run build-action-js",
"action:semantic-release": "ACTION_NAME=semantic-release npm run build-action-js"
"action:semantic-release": "ACTION_NAME=semantic-release npm run build-action-js",
"action:setup-binaries": "ACTION_NAME=setup-binaries npm run build-composition",
"action:semantic-release-pack": "ACTION_NAME=semantic-release-pack npm run build-composition"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit ced6f9c

Please sign in to comment.