-
-
Notifications
You must be signed in to change notification settings - Fork 191
43 lines (38 loc) · 1.06 KB
/
deploy.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
name: Deploy
on:
push:
branches: [ main ]
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
jobs:
deploy_alpha:
name: Publish alpha npm package
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 100
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
cache: npm
- run: npm ci
- run: npm run build
- run: npm run build:esm
- run: echo "alpha_version=$(node -e "console.log(require('./version').getAlphaVersion());")" >> $GITHUB_ENV
- run: echo $alpha_version
- run: npm --no-git-tag-version version $alpha_version
- run: npm publish --tag next
docs:
name: docs
runs-on: [ubuntu-latest]
steps:
- name: Trigger docs deployment
uses: peter-evans/[email protected]
with:
repository: excaliburjs/excaliburjs.github.io
token: ${{ secrets.DOCS_GH_TOKEN }}
event-type: deploy-docs