Skip to content

@storyblok/field-plugin-cli@1.5.0 #67

@storyblok/field-plugin-cli@1.5.0

@storyblok/field-plugin-cli@1.5.0 #67

Workflow file for this run

name: Publish CLI to NPM
on:
release:
types: [published]
jobs:
publish-npm:
if: startsWith(github.event.release.name, '@storyblok/field-plugin-cli@')
name: Publish CLI to NPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18.16.0
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'
- run: yarn install --immutable
- name: Build the CLI
run: yarn build:cli
- name: Publish the package to NPM
run: ./scripts/publish.ts cli
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH}}