Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
Bumps to v0.2.0 (#148)
Browse files Browse the repository at this point in the history
- Updates dependencies, fixing the new versions;
- Updates the CI cache;
- Forces to resolve the same versions as in the `yarn.lock`;
- Prettify the CI;
- Remote timestamp from Percy.
  • Loading branch information
PedroHLC authored Feb 18, 2022
1 parent 7ae5a14 commit c09633a
Show file tree
Hide file tree
Showing 4 changed files with 1,091 additions and 1,212 deletions.
76 changes: 29 additions & 47 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,63 +5,45 @@ on:
push:
branches: [master]
tags:
- '*'
- "*"

jobs:
lint:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false

steps:
- name: Checkout
uses: actions/checkout@v2
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: "lts/*"
cache: "yarn"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Install dependencies
run: yarn install --frozen-lockfile

- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install

- name: Run linter
run: yarn run lint
- name: Run linter
run: yarn run lint

build:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v2
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
steps:
- name: Checkout
uses: actions/checkout@v2

- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: "lts/*"
cache: "yarn"

- name: Install dependencies
run: yarn install
- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Build
run: yarn run build
- name: Build
run: yarn run build
5 changes: 4 additions & 1 deletion .github/workflows/percy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ jobs:

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: "lts/*"
cache: "yarn"

- name: Percy test
uses: cypress-io/github-action@v2
with:
install-command: yarn --frozen-lockfile --silent
install-command: yarn install --frozen-lockfile --silent
cache-key: percy-${{ hashFiles('yarn.lock') }}
start: yarn run preview
wait-on: "http://localhost:1234"
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "paack-ui-assets",
"version": "0.1.8",
"version": "0.2.0",
"description": "",
"files": [
"js"
Expand All @@ -15,17 +15,17 @@
"optimize-svgs": "rm -f dist/optimizedSvg/* && svgo -f ./src/svg -o ./dist/optimizedSvg",
"create-svg-sprite": "svg-sprite --symbol --symbol-inline --symbol-dest=dist/ --symbol-sprite=icon-sprite.svg dist/optimizedSvg/*.svg --symbol-example=true",
"lint": "eslint src/js",
"preview": "yarn run build:spritesheet && parcel serve dist/sprite.symbol.html"
"preview": "yarn run build:spritesheet && sed -i'' 's/<footer>/<!-- footer/;s/<\\/footer>/-->/' dist/sprite.symbol.html && parcel serve dist/sprite.symbol.html"
},
"author": "PackEng",
"license": "MIT",
"devDependencies": {
"@percy/cli": "^1.0.0-beta.47",
"@percy/cypress": "^3.0.0",
"cypress": "^9.0.0",
"eslint": "^8.2.0",
"@percy/cli": "^1.0.0-beta.75",
"@percy/cypress": "^3.1.1",
"cypress": "^9.5.0",
"eslint": "^8.9.0",
"parcel-bundler": "^1.12.4",
"svg-sprite": "^1.5.0",
"svgo": "^2.2.2"
"svg-sprite": "^1.5.4",
"svgo": "^2.8.0"
}
}
Loading

0 comments on commit c09633a

Please sign in to comment.