Skip to content

Publish firmware package #85

Publish firmware package

Publish firmware package #85

Workflow file for this run

name: Publish firmware package
on:
push:
tags:
- '@pybricks/firmware/**'
jobs:
npm_firmware:
runs-on: ubuntu-22.04
defaults:
run:
working-directory: npm/firmware
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: python -m pip install PyGithub
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: yarn install
- run: yarn build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}