1
1
mirror of https://github.com/primer/css.git synced 2024-12-23 14:13:14 +03:00

Adding bundle workflow

This commit is contained in:
Jon Rohan 2021-03-25 13:53:21 -07:00
parent 365d0eb8b9
commit 1165b07ad0
No known key found for this signature in database
GPG Key ID: B0BBE304A9A0AECB
5 changed files with 26 additions and 20 deletions

26
.github/workflows/bundle_size.yml vendored Normal file
View 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

View File

@ -25,9 +25,6 @@ jobs:
- name: Test
run: yarn test
- name: Prepublish
run: script/prepublish
- name: Create .npmrc
run: |
cat << EOF > "$HOME/.npmrc"

View File

@ -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/

View File

@ -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",

View File

@ -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 -