mirror of
https://github.com/sindresorhus/github-markdown-css.git
synced 2024-03-22 13:10:53 +08:00
add circle
This commit is contained in:
parent
cedffa4f2a
commit
c7d707ccbb
57
.circleci/config.yml
Normal file
57
.circleci/config.yml
Normal file
@ -0,0 +1,57 @@
|
||||
version: 2
|
||||
|
||||
defaults: &defaults
|
||||
working_directory: ~/storybook-addon-notes-github-markdown-css
|
||||
docker:
|
||||
- image: circleci/node:latest-browsers
|
||||
|
||||
jobs:
|
||||
install:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
keys:
|
||||
# Find a cache corresponding to this specific package.json checksum
|
||||
# when this file is changed, this key will fail
|
||||
- storybook-addon-notes-github-markdown-css-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ checksum ".circleci/config.yml" }}
|
||||
- storybook-addon-notes-github-markdown-css-{{ .Branch }}-{{ checksum "yarn.lock" }}
|
||||
- storybook-addon-notes-github-markdown-css-{{ .Branch }}
|
||||
# Find the most recent cache used from any branch
|
||||
- storybook-addon-notes-github-markdown-css-master
|
||||
- storybook-addon-notes-github-markdown-css-
|
||||
- run:
|
||||
name: Install Dependencies
|
||||
command: yarn install --frozen-lockfile
|
||||
- save_cache:
|
||||
key: storybook-addon-notes-github-markdown-css-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ checksum ".circleci/config.yml" }}
|
||||
paths:
|
||||
- node_modules
|
||||
- ~/.cache/yarn
|
||||
- persist_to_workspace:
|
||||
root: .
|
||||
paths:
|
||||
- .
|
||||
|
||||
release:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- attach_workspace:
|
||||
at: ~/storybook-addon-notes-github-markdown-css
|
||||
- run:
|
||||
name: Release
|
||||
command: yarn release
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
build_and_test:
|
||||
jobs:
|
||||
- install
|
||||
|
||||
- release:
|
||||
requires:
|
||||
- install
|
||||
filters:
|
||||
branches:
|
||||
only:
|
||||
- master
|
@ -14,7 +14,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"make": "github-markdown-css > github-markdown.css && replace-in-file --configFile=replace-config.js github-markdown.css",
|
||||
"deploy": "npm run make && auto shipit"
|
||||
"release": "npm run make && auto shipit"
|
||||
},
|
||||
"files": [
|
||||
"github-markdown.css"
|
||||
|
Loading…
x
Reference in New Issue
Block a user