Skip to content

Publish npm package #12

Publish npm package

Publish npm package #12

# Publishes npm package with a version bump chosen by the user.
#
# From the master branch, package bumps can be patch, minor, or major.
#
# From the develop branch, package bumps can only be prerelease
name: "Publish npm package"
on:
workflow_dispatch:
inputs:
versionBumpStrategy:
description: 'Version bump strategy'
required: true
default: 'prerelease'
type: choice
options:
- test
- prerelease
- patch
- minor
- major
jobs:
call-reusable-workflow:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Foundry Setup
uses: ./.github/actions/foundry-setup
- name: "Publish"
uses: ./.github/actions/publish-npm-package
with:
env:
VERSION_BUMP_STRATEGY: ${{ github.event.inputs.versionBumpStrategy }}

Check failure on line 41 in .github/workflows/publish-npm-package.yml

View workflow run for this annotation

GitHub Actions / Publish npm package

Invalid workflow file

The workflow is not valid. .github/workflows/publish-npm-package.yml (Line: 41, Col: 11): A mapping was not expected