Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make wrapito agnostic of testing framework #56

Draft
wants to merge 20 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
push:
tags:
- 'v*.*.*'
- 'v*.*.*-beta*'

jobs:
publish-npm:
runs-on: ubuntu-latest
Expand All @@ -16,7 +18,13 @@ jobs:
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm version --no-git-tag-version ${GITHUB_REF##*/}
- run: npm run publish-package
- name: Publish package
run: |
if [[ ${{ github.ref }} == *-beta* ]]; then
npm run publish-package:beta
else
npm run publish-package
fi
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
- name: Build Changelog
Expand All @@ -34,4 +42,4 @@ jobs:
release_name: Release ${{ github.ref }}
body: ${{steps.github_release.outputs.changelog}}
draft: false
prerelease: false
prerelease: ${{ contains(github.ref, '-beta') }}
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,3 +295,12 @@ git push origin v1.0.5
```

This will run a workflow in github that will publish this version for you.

If you need to release beta versions to test things, you may do so with the -beta tag. E.g:

```
git tag v1.0.5-beta1
git push origin v1.0.5-beta1
```

This will run a workflow in github that will publish this version for you as a pre-release.
4 changes: 0 additions & 4 deletions config/extend.ts

This file was deleted.

3 changes: 3 additions & 0 deletions config/setup.js
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
import '@testing-library/jest-dom/extend-expect'
import { matchers } from '../src/index.ts'

expect.extend(matchers)
Loading
Loading