-
Notifications
You must be signed in to change notification settings - Fork 12
47 lines (45 loc) · 1.44 KB
/
publish-workflow.yml
File metadata and controls
47 lines (45 loc) · 1.44 KB
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
name: Publish
on:
release:
types: [published]
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
registry-url: https://registry.npmjs.org/
- name: Use Deno Version ${{ matrix.deno-version }}
uses: denolib/setup-deno@master
with:
deno-version: 1.40.x
- name: npm install and test
run: |
npm ci
npx jest --no-cache --ci
env:
CI: true
- name: deno test
run: |
cd deno
deno test
- name: build
run: npm run build
env:
CI: true
- name: publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: build docs
run: npm run build:docs
- name: publish docs
uses: JamesIves/github-pages-deploy-action@4.1.7
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages # The branch the action should deploy to.
folder: docs # The folder the action should deploy.