Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: egoist/joycon
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.0.0
Choose a base ref
...
head repository: egoist/joycon
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.0.1
Choose a head ref
  • 3 commits
  • 3 files changed
  • 1 contributor

Commits on Mar 16, 2021

  1. fix: support node 10 (#17)

    * test node 10
    
    * Update package.json
    egoist authored Mar 16, 2021
    Copy the full SHA
    2d18ff3 View commit details
  2. chore: add github action

    egoist authored Mar 16, 2021
    Copy the full SHA
    35abb7f View commit details
  3. Update ci.yml

    egoist authored Mar 16, 2021
    Copy the full SHA
    2742533 View commit details
Showing with 72 additions and 2 deletions.
  1. +70 −0 .github/workflows/ci.yml
  2. +1 −1 circle.yml
  3. +1 −1 package.json
70 changes: 70 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Buidd, test and Release

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
strategy:
matrix:
os: [ubuntu-latest]
node_version: [10.x,12.x,14.x]

runs-on: ${{ matrix.os }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- uses: actions/setup-node@v1
with:
node-version: ${{matrix.node_version}}

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v1
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-${{runner.node_version}}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install
run: yarn

# Runs a set of commands using the runners shell
- name: Build and Test
run: yarn test

release:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install
run: yarn
- name: Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ version: 2
jobs:
build:
docker:
- image: circleci/node:latest
- image: circleci/node:10
branches:
ignore:
- gh-pages # list of branches to ignore
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -34,6 +34,6 @@
"prettier": "^2.2.1"
},
"engines": {
"node": ">=12"
"node": ">=10"
}
}