Skip to content

Commit

Permalink
chore: update gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
toomuchdesign committed Jul 15, 2024
1 parent c77d979 commit 08bc172
Show file tree
Hide file tree
Showing 9 changed files with 101 additions and 16 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
12 changes: 12 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": [],
"title": "chore: release"
}
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,18 @@ updates:
directory: '/'
schedule:
interval: 'daily'
groups:
vitest:
patterns:
- 'vitest'
- '@vitest/*'

- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'daily'
groups:
upload-download-artifact:
patterns:
- 'actions/upload-artifact'
- 'actions/download-artifact'
28 changes: 22 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
name: CI
on:
push:
Expand All @@ -10,20 +9,37 @@ env:
CI: true

jobs:
build:
test-and-build:
name: 'Test and build'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'

- run: npm ci

- name: Upload code coverage
uses: coverallsapp/github-action@master
- uses: actions/upload-artifact@v4
with:
name: code-coverage
path: coverage

upload-code-coverage:
name: 'Upload code coverage'
needs: ['test-and-build']
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v4
with:
name: code-coverage
path: coverage

- uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
7 changes: 4 additions & 3 deletions .github/workflows/dependebot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ jobs:
dependabot-auto-merge:
name: 'Dependabot auto merge'
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@v4
- uses: ahmadnassri/action-dependabot-auto-merge@v2
- uses: fastify/github-action-merge-dependabot@v3
with:
target: minor
github-token: ${{ secrets.READ_AND_WRITE_TOKEN }}
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release

on:
push:
branches:
- master

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release new version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'

- run: npm ci

- name: Create release pull request
uses: changesets/action@v1
permissions:
pull-requests: write
contents: write
with:
publish: npm run tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ coverage
!.travis.yml
!.github
!.nvmrc
!.changeset
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ package-lock.json
dist/
package/
coverage/
CHANGELOG.md
16 changes: 9 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
# 3.2.0
# msw-inspector

## 3.2.0

### New Features

- `mswInspector.getRequests`: support full url match via regex

# 3.1.0
## 3.1.0

### New Features

- Improve error message when `request.body` is already read

# 3.0.0
## 3.0.0

### Breaking change

- Support `msw` v2+
- `mswInspector.getRequests` method switched from sync to async

# 2.0.0
## 2.0.0

### Breaking change

Expand All @@ -31,18 +33,18 @@
- `debug` option added
- Throw error when invalid URL provided

# 1.0.0
## 1.0.0

### Breaking change

- Support `msw` v1+

# 0.1.0
## 0.1.0

### New Features

- Add `requestLogger` option to customize inspection results

# 0.0.1
## 0.0.1

Initial release

0 comments on commit 08bc172

Please sign in to comment.