Skip to content

Commit b3da513

Browse files
authored
Move to Github Actions (#6)
* Move to Github Actions * update badges * update workflows
1 parent b9cdb66 commit b3da513

File tree

4 files changed

+67
-19
lines changed

4 files changed

+67
-19
lines changed

.circleci/config.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version: [14.x]
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
with:
21+
submodules: true
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
- run: npm install
27+
- run: npm test

.github/workflows/npm-publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: npm-publish
2+
on:
3+
push:
4+
branches:
5+
- master # Change this to your default branch
6+
jobs:
7+
npm-publish:
8+
name: npm-publish
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@master
13+
with:
14+
submodules: true
15+
- name: Set up Node.js
16+
uses: actions/setup-node@master
17+
with:
18+
node-version: 14.0.0
19+
- id: publish
20+
uses: JS-DevTools/npm-publish@v1
21+
with:
22+
token: ${{ secrets.NPM_AUTH_TOKEN }}
23+
- name: Create Release
24+
if: steps.publish.outputs.type != 'none'
25+
id: create_release
26+
uses: actions/create-release@v1
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
with:
30+
tag_name: ${{ steps.publish.outputs.version }}
31+
release_name: Release ${{ steps.publish.outputs.version }}
32+
body: ${{ steps.publish.outputs.version }}
33+
draft: false
34+
prerelease: false

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
# ProtoDef-validator
2+
23
[![NPM version](https://img.shields.io/npm/v/protodef-validator.svg)](http://npmjs.com/package/protodef-validator)
3-
[![Build Status](https://circleci.com/gh/ProtoDef-io/node-protodef-validator/tree/master.svg?style=shield)](https://circleci.com/gh/ProtoDef-io/node-protodef-validator/tree/master)
4+
[![Discord](https://img.shields.io/badge/chat-on%20discord-brightgreen.svg)](https://discord.gg/GsEFRM8)
5+
[![Gitter](https://img.shields.io/badge/chat-on%20gitter-brightgreen.svg)](https://gitter.im/PrismarineJS/general)
6+
[![Irc](https://img.shields.io/badge/chat-on%20irc-brightgreen.svg)](https://irc.gitter.im/)
7+
[![Build Status](https://github.com/ProtoDef-io/node-protodef-validator/workflows/CI/badge.svg)](https://github.com/ProtoDef-io/node-protodef-validator/actions?query=workflow%3A%22CI%22)
48
[![Try it on gitpod](https://img.shields.io/badge/try-on%20gitpod-brightgreen.svg)](https://gitpod.io/#https://github.com/ProtoDef-io/node-protodef-validator)
59

10+
611
Validate [ProtoDef](https://github.com/ProtoDef-io/ProtoDef) protocol definition in node
712

813
## Installing

0 commit comments

Comments
 (0)