Skip to content

Commit

Permalink
Merge pull request #19 from quintoandar/chore/github-actions
Browse files Browse the repository at this point in the history
chore: add github actions config
  • Loading branch information
tjunyamasaki authored Jul 13, 2021
2 parents 0e9fd79 + 001eb45 commit 773356d
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 11 deletions.
10 changes: 0 additions & 10 deletions .drone.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This workflow does a clean install of Node dependencies, builds the source code,
# lints and runs unit tests across different versions of Node
# For more information see:
# https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
- run: npm run prepare
23 changes: 23 additions & 0 deletions .github/workflows/publish-github.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This workflow publishes to GitHub Packages when a release is created
# For more information see:
# https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Publish to GitHub Packages

on:
release:
types: [created]

jobs:
publish-gpr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
23 changes: 23 additions & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This workflow publishes to the npm Registry when a release is created
# For more information see:
# https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Publish to npm

on:
release:
types: [created]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ src
test

.babelrc
.drone.yml
.prettierignore
.prettierrc

Expand Down

0 comments on commit 773356d

Please sign in to comment.