Skip to content

Commit

Permalink
test: cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerget committed Aug 22, 2022
1 parent 8cf4507 commit c71f8d2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Publish Changelog

on:
workflow_call:
version:
required: true
type: string

jobs:
changelog:
Expand All @@ -16,7 +19,8 @@ jobs:
- name: Create changelog
run: |
echo 'CHANGELOG_TEXT<<EOF' >> $GITHUB_ENV
npx conventional-changelog-cli -h -p angular -r 0 >> $GITHUB_ENV
npm version --no-git-tag-version ${{ inputs.version }}
npx conventional-changelog-cli -h -p angular -r 1 >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- uses: actions/github-script@v6
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,22 @@ jobs:

deploy:
uses: ./.github/workflows/03-deploy-gh-pages.yml
needs: [validate, test, cypress, get-publish-version]
needs: [cypress, get-publish-version]
with:
release: ${{ needs.get-publish-version.outputs.release }}
preRelease: ${{ needs.get-publish-version.outputs.preRelease }}

publishpackages:
uses: ./.github/workflows/03-publish-packages.yml
needs: [validate, test, cypress, get-publish-version]
needs: [cypress, get-publish-version]
secrets: inherit
with:
release: ${{ needs.get-publish-version.outputs.release }}
preRelease: ${{ needs.get-publish-version.outputs.preRelease }}
version: ${{ needs.get-publish-version.outputs.version }}

changeloglatest:
uses: ./.github/workflows/04-changelog.yml
needs: [publishpackages]
uses: ./.github/workflows/03-changelog.yml
needs: [cypress, get-publish-version]
with:
version: ${{ needs.get-publish-version.outputs.version }}

0 comments on commit c71f8d2

Please sign in to comment.