Skip to content
This repository was archived by the owner on Feb 5, 2023. It is now read-only.

Commit ee06247

Browse files
committed
chore: Use new GitHub workflow
1 parent 22c7396 commit ee06247

File tree

3 files changed

+56
-70
lines changed

3 files changed

+56
-70
lines changed

.github/main.workflow

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

.github/workflows/pull_request.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Pull request
2+
3+
on: pull_request
4+
5+
jobs:
6+
build_test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- uses: actions/setup-node@v1
11+
with:
12+
node-version: 10.x
13+
- run: |
14+
yarn
15+
yarn lint
16+
yarn test
17+
yarn dist
18+
env:
19+
NODE_ENV: development
20+
if: |
21+
contains(github.event.commits[0].message, '[skip ci]') == false &&
22+
contains(github.event.commits[0].message, '[ci skip]') == false

.github/workflows/push_master.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Push to master
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build_test_release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
- uses: actions/setup-node@v1
14+
with:
15+
node-version: 10.x
16+
- run: |
17+
yarn
18+
yarn lint
19+
yarn test
20+
yarn dist
21+
git config --global "user.email" "${GIT_EMAIL}"
22+
git config --global "user.name" "${GIT_NAME}"
23+
REPO_URL="$(git remote get-url origin | sed -n "s/https:\/\/github.com\//https:\/\/${GIT_AUTHOR_NAME}:${GH_TOKEN}@github.com\//p")"
24+
yarn release -r "${REPO_URL}"
25+
env:
26+
GIT_AUTHOR_NAME: ffflobot
27+
GIT_AUTHOR_EMAIL: ffflobot@users.noreply.github.com
28+
GIT_COMMITTER_NAME: ffflobot
29+
GIT_COMMITTER_EMAIL: ffflobot@users.noreply.github.com
30+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
31+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
32+
if: |
33+
contains(github.event.commits[0].message, '[skip ci]') == false &&
34+
contains(github.event.commits[0].message, '[ci skip]') == false

0 commit comments

Comments
 (0)