Release to npm #38891
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |