1
1
mirror of https://github.com/primer/css.git synced 2024-11-28 22:01:43 +03:00
css/.github/workflows/ci.yml

26 lines
667 B
YAML
Raw Normal View History

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:
node-version: 11
2019-09-05 01:58:17 +03:00
- name: install
run: npm install
2019-09-05 01:58:17 +03:00
- name: lint
run: script/lint-ci
2019-09-05 01:58:17 +03:00
- name: test
run: npm test
- name: prepublish
run: script/prepublish
- name: test deprecations
2019-09-10 03:06:57 +03:00
if: startsWith(github.ref, 'refs/heads/release-')
run: script/test-deprecations.js
- uses: primer/publish@v1.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}