test: add test about undefined value for non-required prop #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the | |
# added or changed files to the repository. | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set Node version | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install Dependencies | |
run: yarn | |
- name: Lint | |
run: yarn lint | |
- name: Run tests | |
run: yarn test | |
- name: Build | |
run: yarn build | |
- name: Conventional Changelog Action | |
id: changelog | |
uses: TriPSs/conventional-changelog-action@v5 | |
with: | |
# Do not generate the CHANGELOG.md. Changelog details will be included | |
# in the release notes. | |
output-file: 'false' | |
github-token: ${{ github.token }} | |
- name: Publish to NPM | |
uses: JS-DevTools/npm-publish@v3 | |
if: ${{ steps.changelog.outputs.skipped == 'false' }} | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
- name: Create Release | |
uses: ncipollo/release-action@v1 | |
if: ${{ steps.changelog.outputs.skipped == 'false' }} | |
with: | |
allowUpdates: true | |
draft: false | |
name: ${{ steps.changelog.outputs.tag }} | |
tag: ${{ steps.changelog.outputs.tag }} | |
body: ${{ steps.changelog.outputs.clean_changelog }} | |
token: ${{ github.token }} |