This repository was archived by the owner on Feb 5, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +56
-70
lines changed Expand file tree Collapse file tree 3 files changed +56
-70
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments