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

Use auto for release management #100

Merged
merged 2 commits into from Mar 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/chromatic.yml
Expand Up @@ -5,6 +5,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 16

- name: Install dependencies
uses: bahmutov/npm-install@v1
- name: Build addon
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
@@ -1,13 +1,11 @@
name: release

on:
schedule:
- cron: '0 23 * * *'
workflow_dispatch:
on: [push]

jobs:
release:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -28,7 +26,8 @@ jobs:
run: yarn test

- name: Release
uses: cycjimmy/semantic-release-action@v3
run: |
yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,6 +5,7 @@

# misc
.DS_Store
.env
.env.local
.env.development.local
.env.test.local
Expand Down
15 changes: 14 additions & 1 deletion packages/msw-addon/package.json
Expand Up @@ -7,7 +7,8 @@
"scripts": {
"dev": "yarn build --watch",
"build": "tsc",
"prepublishOnly": "yarn build"
"prepublishOnly": "yarn build",
"release": "auto shipit"
},
"files": [
"dist/"
Expand Down Expand Up @@ -37,6 +38,8 @@
"is-node-process": "^1.0.1"
},
"devDependencies": {
"@auto-it/released": "^10.32.2",
"auto": "^10.32.2",
"typescript": "^4.5.2"
},
"peerDependencies": {
Expand All @@ -45,5 +48,15 @@
"storybook": {
"displayName": "Mock Service Worker",
"icon": "https://user-images.githubusercontent.com/1671563/144888802-84346d8f-77c9-4377-98c7-4b0364797978.png"
},
"auto": {
"prereleaseBranches": [
"next",
"prerelease"
],
"plugins": [
"npm",
"released"
]
}
}