mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-08 05:09:08 +02:00
ff354cc5b8
* GitHub actions uses locked install for CI * Add initial GitHub action to publish to NPM * Detect the NPM tag (latest vs next) depending on the git tag * Deploy docs from releases & master commits * Remove Travis CI * Update repo badge to use actions status * Remove Travis env vars and update docs-config to take a parameter * Update publish script regex to match other scripts * Deploy docs action only runs in one spot
29 lines
638 B
YAML
29 lines
638 B
YAML
# This workflow publishes new documentation to https://chartjs.org/docs/master after every commit
|
|
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v1
|
|
- name: Package & Deploy Docs
|
|
run: |
|
|
npm ci
|
|
npm run build
|
|
./scripts/docs-config.sh "master"
|
|
npm run docs
|
|
npm run typedoc
|
|
npm pack
|
|
./scripts/deploy-docs.sh "master"
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GH_AUTH_TOKEN }}
|
|
GH_AUTH_EMAIL: ${{ secrets.GH_AUTH_EMAIL }}
|