Skip to content

Release to npm

Release to npm #39075

Workflow file for this run

name: Release to npm
on:
workflow_dispatch:
schedule:
- cron: '0 * * * *'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check for new kubo version
id: check
uses: ./.github/actions/check-for-kubo-release
- name: Set up node
if: steps.check.outputs.publish == 'true'
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install
if: steps.check.outputs.publish == 'true'
run: npm install
- name: Test
if: steps.check.outputs.publish == 'true'
run: npm test
- name: Publish
if: steps.check.outputs.publish == 'true'
uses: ./.github/actions/publish
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}