-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (37 loc) · 1.03 KB
/
npm-transformer.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
name: npmjs.com - Transformer
on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --features transformer
- uses: actions/setup-node@v2
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- name: Setup yarn
run: npm install -g yarn
- working-directory: ./bindings/node.js
run: yarn install
- name: Build pkg
working-directory: ./bindings/node.js
run: yarn build:transformer && yarn compile:transformer
- working-directory: ./bindings/node.js
run: yarn test:transformer
- working-directory: ./bindings/node.js/pkg/transformer
run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}