1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-08-10 00:16:59 +02:00

ci: Add semantic-release

Add `semantic-release` to the repo and the build pipeline. This will handle automatically publishing
to npm based on commit messages.

#13
This commit is contained in:
Trezy
2018-12-01 10:29:21 -06:00
committed by BcRikko
parent 8412aa2bc4
commit 879a805ffe
3 changed files with 4749 additions and 9 deletions

View File

@@ -87,9 +87,8 @@ jobs:
# yarn run build # yarn run build
# fi # fi
- run: - run:
name: Build the Application name: Build the Framework
command: npm run build command: npm run build
- save_cache: - save_cache:
@@ -133,13 +132,17 @@ jobs:
# name: Generate and upload coverage report # name: Generate and upload coverage report
# command: yarn test-coverage # command: yarn test-coverage
deploy: release:
<<: *defaults <<: *defaults
steps: steps:
- attach_workspace: - attach_workspace:
at: . at: .
- run:
name: Release
command: npx semantic-release
@@ -167,7 +170,7 @@ workflows:
only: only:
- master - master
- develop - develop
- deploy: - release:
requires: requires:
# - test # - test
- build - build

4737
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{ {
"name": "nes.css", "name": "nes.css",
"version": "0.0.2", "version": "0.0.0-development",
"description": "NES.css is NES-style CSS Framework.", "description": "NES.css is NES-style CSS Framework.",
"scripts": { "scripts": {
"watch": "npm run build:sass -- --watch", "watch": "npm run build:sass -- --watch",
@@ -11,13 +11,14 @@
"build:sass": "node-sass --output-style expanded --source-map true scss/nes.scss css/nes.css", "build:sass": "node-sass --output-style expanded --source-map true scss/nes.scss css/nes.css",
"build:autoprefix": "postcss --use autoprefixer --map false --output css/nes.css css/nes.css", "build:autoprefix": "postcss --use autoprefixer --map false --output css/nes.css css/nes.css",
"build:cleancss": "cleancss -o css/nes.min.css css/nes.css", "build:cleancss": "cleancss -o css/nes.min.css css/nes.css",
"deploy": "npm run build",
"storybook": "start-storybook -p 6006", "storybook": "start-storybook -p 6006",
"build:storybook": "build-storybook" "build:storybook": "build-storybook",
"deploy": "npm run build",
"semantic-release": "semantic-release"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/BcRikko/NES.css.git" "url": "https://github.com/BcRikko/NES.css.git"
}, },
"keywords": [ "keywords": [
"css", "css",
@@ -47,6 +48,7 @@
"postcss-cli": "^6.0.0", "postcss-cli": "^6.0.0",
"prettier": "^1.15.2", "prettier": "^1.15.2",
"rimraf": "^2.6.2", "rimraf": "^2.6.2",
"semantic-release": "^15.12.3",
"stylelint": "^9.5.0", "stylelint": "^9.5.0",
"stylelint-config-prettier": "^4.0.0", "stylelint-config-prettier": "^4.0.0",
"stylelint-config-recess-order": "^2.0.0", "stylelint-config-recess-order": "^2.0.0",