1
1
mirror of https://github.com/primer/css.git synced 2024-12-15 15:34:02 +03:00
css/.github/workflows/ci.yml
2019-10-15 09:37:14 -07:00

26 lines
667 B
YAML

name: CI
on: push
jobs:
all:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: 11
- name: install
run: npm install
- name: lint
run: script/lint-ci
- name: test
run: npm test
- name: prepublish
run: script/prepublish
- name: test deprecations
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 }}