Skip to content

Publish firmware bundles to nRF Cloud #28

Publish firmware bundles to nRF Cloud

Publish firmware bundles to nRF Cloud #28

name: Publish firmware bundles to nRF Cloud
on:
workflow_dispatch:
inputs:
version:
required: true
type: string
description: Release version to publish, e.g. "v1.1.0"
jobs:
publish:
environment: production
name: Publish firmware bundles to nRF Cloud
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18.x"
- name: Keep npm cache around to speed up installs
uses: actions/cache@v3
with:
path: ~/.npm
key: build-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm ci --no-audit
- run:
node .github/workflows/register-firmware-bundles.js ${{ inputs.version
}}
env:
NRF_CLOUD_API_KEY: ${{ secrets.NRF_CLOUD_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}