Skip to content

ashtonG is publishing to npm #15

ashtonG is publishing to npm

ashtonG is publishing to npm #15

Workflow file for this run

name: publish-to-npm
run-name: ${{ github.actor }} is publishing to npm
on:
workflow_dispatch:
inputs:
bump_level:
description: type of version bump
type: choice
default: patch
required: true
options:
- patch
- minor
- major
- custom (use custom_bump_level)
custom_bump_level:
description: version to bump to
type: string
jobs:
validate-input:
name: build and publish package
runs-on: ubuntu-latest
steps:
- if: ${{ startsWith(inputs.bump_level, 'custom') && inputs.custom_bump_level == '' }}
run: "echo 'custom version indicated but not set' && exit 1"
build-and-publish:
needs: [validate-input]
uses: determined-ai/publish-to-npm-action/.github/workflows/publish-to-npm.yml@v0

Check failure on line 29 in .github/workflows/publish-to-npm.yml

View workflow run for this annotation

GitHub Actions / publish-to-npm

Invalid workflow file

The workflow is not valid. .github/workflows/publish-to-npm.yml (Line: 29, Col: 11): Input npm_token is required, but not provided while calling. .github/workflows/publish-to-npm.yml (Line: 33, Col: 26): Invalid secret, NPM_CLASSIC_TOKEN is not defined in the referenced workflow.
with:
bump_level: ${{ startsWith(inputs.bump_level, 'custom') && inputs.custom_bump_level || inputs.bump_level }}
secrets:
NPM_CLASSIC_TOKEN: ${{ secrets.NPM_CLASSIC_TOKEN }}