Skip to content

Commit

Permalink
refactor: moving pipeline for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
andrelmlins committed Apr 30, 2022
1 parent e0a3803 commit b8ba37e
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 26 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Node.js CI

on: [push, pull_request]

jobs:
build_test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [12, 14]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
23 changes: 23 additions & 0 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Node.js Package

on:
release:
types: [created]

jobs:
npm-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Npm publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

0 comments on commit b8ba37e

Please sign in to comment.