Skip to content

Commit

Permalink
Use auto for release management (#100)
Browse files Browse the repository at this point in the history
* use auto for release management

* set node version in chromatic workflow
  • Loading branch information
yannbf committed Mar 8, 2023
1 parent 8ad53b0 commit 0c1ab91
Show file tree
Hide file tree
Showing 5 changed files with 787 additions and 22 deletions.
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"
]
}
}

1 comment on commit 0c1ab91

@vercel
Copy link

@vercel vercel bot commented on 0c1ab91 Mar 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

msw-storybook-addon – ./

msw-storybook-addon-git-main-mswjs.vercel.app
msw-sb.vercel.app
msw-storybook-addon-mswjs.vercel.app

Please sign in to comment.