Skip to content

Release to npm

Release to npm #33663

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@v3
- 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@v3
with:
node-version: 14.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 }}