Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: maintenance #650

Merged
merged 3 commits into from
Mar 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 18 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Loading