Skip to content

Commit

Permalink
feat: maintenance (#650)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kocal committed Mar 4, 2020
1 parent 4a5537b commit 44245ad
Show file tree
Hide file tree
Showing 5 changed files with 367 additions and 226 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/ci.yml
Expand Up @@ -18,20 +18,29 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Cache node_modules
uses: actions/cache@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
path: ${{ github.workspace }}/node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-modules-
node-version: ${{ matrix.node-version }}
registry-url: 'https://npm.pkg.github.com'
scope: '@yproximite'
always-auth: true

- name: Install Node.js
uses: actions/setup-node@v1
- name: Get yarn cache directory
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Restore yarn cache (if available)
uses: actions/cache@v1
with:
node-version: ${{ matrix.nodejs }}
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: yarn build

Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Expand Up @@ -17,13 +17,19 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 10.x
node-version: ${{ matrix.node-version }}
registry-url: 'https://npm.pkg.github.com'
scope: '@yproximite'
always-auth: true

- run: yarn install --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: yarn build

- run: yarn semantic-release
env:
NPM_TOKEN: ${{ secrets.GH_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions docs/getting-started.md
Expand Up @@ -2,8 +2,8 @@

## Requirements

- Node.js 8+
- Yarn
- Node.js 10+
- npm or Yarn

## Installation

Expand Down
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -6,7 +6,7 @@
"author": "Hugo Alliaume <kocal@live.fr>",
"license": "MIT",
"engines": {
"node": "8.* || >= 10.*"
"node": ">= 10.*"
},
"files": [
"dist",
Expand Down Expand Up @@ -92,7 +92,7 @@
},
"devDependencies": {
"@babel/core": "^7.2.2",
"@kocal/semantic-release-preset": "^1.1.0",
"@kocal/semantic-release-preset": "^2.0.0",
"@types/autoprefixer": "^9.1.1",
"@types/buble": "^0.19.0",
"@types/cssnano": "^4.0.0",
Expand Down Expand Up @@ -126,7 +126,7 @@
"jest-date-mock": "^1.0.7",
"lint-staged": "^9.2.5",
"prettier": "^1.18.2",
"semantic-release": "^15.10.8",
"semantic-release": "^17.0.4",
"strip-ansi": "^6.0.0",
"stylelint": ">=9.0.0",
"ts-jest": "^25.0.0",
Expand Down

0 comments on commit 44245ad

Please sign in to comment.