1
1
mirror of https://github.com/primer/css.git synced 2024-12-04 03:46:28 +03:00
css/.github/workflows/ci.yml
2020-09-22 15:56:36 -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 }}