Skip to content

Commit

Permalink
use auto for release management
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Mar 8, 2023
1 parent 8ad53b0 commit f87a261
Show file tree
Hide file tree
Showing 4 changed files with 781 additions and 22 deletions.
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 --dry-run"
},
"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"
]
}
}

0 comments on commit f87a261

Please sign in to comment.