-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 963 Bytes
/
publish.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
name: Publish NPM package
on:
push:
tags:
- "*"
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install wasm-pack
run: cargo install wasm-pack
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://npm.pkg.github.com'
- name: Patch datafusion for wasm
run: |
git clone -b 7.0.0 --single-branch https://github.com/apache/arrow-datafusion.git
cd arrow-datafusion
patch --force -p1 -i ../datafusion.patch
- name: Build
run: make build
- name: Publish package
run: |
cd pkg
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}