2019-09-10 03:01:07 +03:00
|
|
|
name: CI
|
|
|
|
on: push
|
2019-09-05 01:58:17 +03:00
|
|
|
jobs:
|
2019-09-10 08:29:25 +03:00
|
|
|
all:
|
2019-09-05 01:58:17 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
- uses: actions/setup-node@master
|
|
|
|
with:
|
2019-10-15 19:37:14 +03:00
|
|
|
node-version: 11
|
2019-09-05 01:58:17 +03:00
|
|
|
- name: install
|
2019-09-25 23:17:00 +03:00
|
|
|
run: npm install
|
2019-09-05 01:58:17 +03:00
|
|
|
- name: lint
|
2019-09-25 23:17:00 +03:00
|
|
|
run: script/lint-ci
|
2019-09-05 01:58:17 +03:00
|
|
|
- name: test
|
2019-09-25 23:17:00 +03:00
|
|
|
run: npm test
|
2019-09-10 08:45:00 +03:00
|
|
|
- name: prepublish
|
|
|
|
run: script/prepublish
|
2019-09-10 03:01:07 +03:00
|
|
|
- name: test deprecations
|
2019-09-10 03:06:57 +03:00
|
|
|
if: startsWith(github.ref, 'refs/heads/release-')
|
2019-09-10 21:22:01 +03:00
|
|
|
run: script/test-deprecations.js
|
2019-09-05 21:03:21 +03:00
|
|
|
- uses: primer/publish@v1.1.0
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|