-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 945 Bytes
/
build.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: Build
on:
push:
branches:
- main
- release-*
tags:
- v*
pull_request:
branches:
- main
- release-*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- uses: actions/setup-go@v3
with:
go-version: "1.19"
- name: Install Apex CLI
run: deno install -A --unstable -f -n apex https://deno.land/x/apex_cli/apex.ts
- name: Generator diff test
run: ./diffcheck.sh
working-directory: ./testdata
- name: Is Release?
if: startswith(github.ref, 'refs/tags/v')
run: echo "DEPLOY_PACKAGE=true" >> $GITHUB_ENV
- name: Publish to npm
if: env.DEPLOY_PACKAGE == 'true'
run: npm pack && npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}