Skip to content

Workflow file for this run

name: Build & package
on:
push:
branches:
- 'master'
- 'fixes'
jobs:
release:
name: Build & package
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
steps:
- name: Clone source code
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 16
- name: Download EDSDK
run: |
curl https://uploads.brickfilms.com/files/1/b95f9b3e-edsdkv131712w.zip -o third_party/b95f9b3e-edsdkv131712w.zip
cd third_party/
7z x b95f9b3e-edsdkv131712w.zip
- name: Patch EDSDKTypes.h file
run: node helpers/patch-headers.js
- name: Install dependencies
run: |
npm ci
- name: Package
run: npm run package
env:
CI: true
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@brick-a-brack'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to Github Packages
run: |
npm publish dist/@brick-a-brack/napi-canon-cameras.tgz