mirror of
https://github.com/primer/css.git
synced 2024-11-22 19:01:02 +03:00
Adding bundle workflow
This commit is contained in:
parent
365d0eb8b9
commit
1165b07ad0
26
.github/workflows/bundle_size.yml
vendored
Normal file
26
.github/workflows/bundle_size.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
name: CI
|
||||
on: [push]
|
||||
jobs:
|
||||
ci:
|
||||
name: CI
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@master
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@master
|
||||
with:
|
||||
node-version: 12
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn
|
||||
|
||||
- name: CSS Lint
|
||||
run: yarn stylelint && yarn stylelint -- --report-needless-disables
|
||||
|
||||
- name: Build
|
||||
run: yarn dist
|
||||
|
||||
- name: Reporting bundle sizes
|
||||
run: script/bundle-size-report.js --all
|
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -25,9 +25,6 @@ jobs:
|
||||
- name: Test
|
||||
run: yarn test
|
||||
|
||||
- name: Prepublish
|
||||
run: script/prepublish
|
||||
|
||||
- name: Create .npmrc
|
||||
run: |
|
||||
cat << EOF > "$HOME/.npmrc"
|
||||
|
@ -9,7 +9,5 @@ docs-test/
|
||||
lib/
|
||||
pages/
|
||||
script/
|
||||
# we ignore this because everything in src/ is copied out in script/prepublish
|
||||
src/
|
||||
static/
|
||||
tests/
|
||||
|
@ -29,7 +29,6 @@
|
||||
"eslint": "eslint script deprecations.js lib .storybook",
|
||||
"eslint-docs": "eslint docs/{content,src,*.js}",
|
||||
"postpublish": "script/postpublish",
|
||||
"prepublishOnly": "script/prepublish",
|
||||
"publish-storybook": "script/publish-storybook",
|
||||
"start": "npm run dev",
|
||||
"dev": "cd docs && npm install && npm run develop",
|
||||
|
@ -1,14 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# generate the build directory
|
||||
npm run --silent dist
|
||||
|
||||
# run the bundle size and selector diff reports
|
||||
script/run-reports
|
||||
|
||||
files=$(git ls-files src | sed -e 's#^src/##' | sed -e 's#/.*$##' | sort -u)
|
||||
echo $files > publish-files.log
|
||||
cd src
|
||||
cp -rv $files ..
|
||||
cd -
|
Loading…
Reference in New Issue
Block a user