Skip to content
Permalink
Browse files

Update CI/CD

  • Loading branch information
evanplaice committed Dec 13, 2019
1 parent d2870e6 commit 3e33d3d076e813d27b379ab50e1db6449819ca65
Showing with 67 additions and 5 deletions.
  1. +33 −0 .github/workflows/latest.yml
  2. +32 −0 .github/workflows/release.yml
  3. +0 −4 .travis.yml
  4. +2 −1 README.md
@@ -0,0 +1,33 @@
name: Latest

on:
push:
branches:
- master

jobs:
verify:
name: Verify
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup
uses: actions/setup-node@v1
with:
node-version: 13.2
- name: Cache
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-npm-cache-
- name: Install
run: npm ci
- name: Test
run: npm t
- name: Lint
run: npm run lint
- name: Types
run: npm run types
@@ -0,0 +1,32 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
uses: actions/setup-node@v1
with:
version: 13.2
- name: Cache
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-npm-cache-
- name: Verify
run: |
npm ci
npm run preversion
- name: Publish
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc
npm publish --access public

This file was deleted.

@@ -3,7 +3,8 @@
[![GitHub Releases](https://img.shields.io/github/release/typeiii/jquery-csv.svg)](https://github.com/typeiii/jquery-csv/releases)
[![NPM Release](https://img.shields.io/npm/v/jquery-csv.svg)](https://www.npmjs.com/package/jquery-csv)
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/typeiii/jquery-csv/master/LICENSE)
[![Build Status](https://travis-ci.org/typeiii/jquery-csv.svg?branch=master)](https://travis-ci.org/typeiii/jquery-csv)
[![Latest Status](https://github.com/typeiii/jquery-csv/workflows/Latest/badge.svg)](https://github.com/typeiii/jquery-csv/actions)
[![Release Status](https://github.com/typeiii/jquery-csv/workflows/Release/badge.svg)](https://github.com/typeiii/jquery-csv/actions)

# Introduction

0 comments on commit 3e33d3d

Please sign in to comment.
You can’t perform that action at this time.