Skip to content

Commit

Permalink
chore: run semantic action in validate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
codfish committed Nov 16, 2020
1 parent e1ef83e commit 0d297d3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,22 @@ jobs:
- run: npm ci

- run: npm run lint

# dog-food testing. Should not release here at all, cause it's not on
# master.
- name: semantic-release
id: semantic
uses: ./
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: test output
if: steps.semantic.outputs.new-release-published == 'false'
run: |
echo "$OUTPUTS"
echo "should be false: $NEW_RELEASE_PUBLISHED"
echo "should be empty: $RELEASE_MAJOR"
echo "should be empty: $RELEASE_MINOR"
echo "should be empty: $RELEASE_PATCH"
env:
OUTPUTS: ${{ toJson(steps.semantic.outputs) }}

0 comments on commit 0d297d3

Please sign in to comment.