Skip to content

Commit

Permalink
Merge pull request #9 from EvgenyiFedotov/next
Browse files Browse the repository at this point in the history
workflows: added
  • Loading branch information
EvgenyiFedotov authored Jan 6, 2020
2 parents 5ff2116 + d1ca686 commit 88e85b6
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/change-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build and publish

on:
push:
tags:
- v*

jobs:
test:
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v1

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org"

- name: install
run: yarn install

- name: test
run: yarn test
env:
CI: true

- name: build
run: yarn build

- name: publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
27 changes: 27 additions & 0 deletions .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Tests pull request

on: pull_request

jobs:
test:
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v1

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: yarn install
run: yarn install

- name: yarn test
run: yarn test
env:
CI: true

0 comments on commit 88e85b6

Please sign in to comment.