Skip to content

v1.12.1

v1.12.1 #7

Workflow file for this run

name: Publish
on:
release:
types: [ created ]
jobs:
publish:
# Specify macos-13 because we need to build on an x64 machine and all macos 14 machines are arm based.
# There seems to be an issue building x64 variants on arm64 machines.
runs-on: macos-13
name: Publish
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- name: Build
run: yarn install --frozen-lockfile
- name: Archive pre-built bindings
uses: actions/upload-artifact@v3
with:
name: binding
path: binding/**
- name: Publish to npm
env:
GH_TOKEN: ${{ github.token }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish