Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into chore/update-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Aug 13, 2020
2 parents 760e2d9 + a7a3d1a commit b8cbc07
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 5 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/mikeals-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
on: [push, pull_request]
name: Build, Test and maybe Publish
jobs:
test:
name: Build & Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache node_modules
id: cache-modules
uses: actions/cache@v1
with:
path: node_modules
key: ${{ matrix.node-version }}-${{ runner.OS }}-build-${{ hashFiles('package.json') }}
- name: Build
if: steps.cache-modules.outputs.cache-hit != 'true'
run: npm install
- name: Test
run: npm test
publish:
name: Publish
needs: test
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- name: Cache node_modules
id: cache-modules
uses: actions/cache@v1
with:
path: node_modules
key: 12.x-${{ runner.OS }}-build-${{ hashFiles('package.json') }}
- name: Build
if: steps.cache-modules.outputs.cache-hit != 'true'
run: npm install
- name: Test
run: npm test

- name: Publish
uses: mikeal/merge-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
14 changes: 9 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dag-cbor-links",
"version": "1.3.4",
"version": "0.0.0-dev",
"description": "",
"main": "index.js",
"scripts": {
Expand All @@ -9,21 +9,25 @@
"keywords": [],
"author": "Mikeal Rogers <mikeal.rogers@gmail.com> (http://www.mikealrogers.com)",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "git://github.com/mikeal/dag-cbor-links.git"
},
"dependencies": {
"cids": "^1.0.0",
"ipld-dag-cbor": "^0.17.0"
},
"devDependencies": {
"babel-eslint": "^10.0.1",
"eslint": "^5.0.1",
"eslint-config-standard": "^11.0.0",
"eslint": "^7.5.0",
"eslint-config-standard": "^14.1.1",
"eslint-config-standard-babel": "0.0.2",
"eslint-plugin-babel": "^5.1.0",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-node": "^8.0.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-standard": "^4.0.0",
"tap": "^12.0.1"
"tap": "^14.10.8"
},
"eslintConfig": {
"parser": "babel-eslint",
Expand Down

0 comments on commit b8cbc07

Please sign in to comment.