forked from vega/vega-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (45 loc) · 1.33 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Release
on:
release:
types: [published]
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Node dependencies
run: yarn --frozen-lockfile
- name: Build
run: yarn build
- name: Setup Git remote
run: ./scripts/setup-git-ci.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Add schema repo
run: |
pushd ..
git clone https://x-access-token:${GH_PAT}@github.com/vega/schema.git
popd
env:
GH_PAT: ${{ secrets.GH_PAT }}
- name: Check NPM deployment
run: ./scripts/check-npm.sh
- uses: actions/setup-node@v2.5.1
with:
registry-url: 'https://registry.npmjs.org'
- name: Publish to NPM registry
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Prebuild website
run: yarn predeploy:site
- name: Publish website
uses: alex-page/blazing-fast-gh-pages-deploy@v1.1.0
with:
repo-token: ${{ secrets.GH_PAT }}
site-directory: 'site/'
- name: Publish schema
run: ./scripts/deploy-schema.sh