Skip to content

Publish

Publish #1

Workflow file for this run

name: publish
run-name: Publish
on:
push:
branches:
- "main"
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Checkout
- uses: actions/setup-node@v4
name: Setup node
with:
node-version: 20
- run: npm ci
name: NPM install
- run: npm run build-storybook
name: Build Storybook
- uses: JamesIves/github-pages-deploy-action@v4
name: Deploy Storybook
with:
folder: storybook-static
- uses: JS-DevTools/npm-publish@v3
name: Deploy NPM
with:
token: ${{ secrets.NPM_TOKEN }}
- uses: martinbeentjes/npm-get-version-action@v1
name: Get package.json version
- uses: elgohr/Github-Release-Action@v5
name: Create a release
with:
title: ${{ current-version }}

Check failure on line 36 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / publish

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 36, Col: 18): Unrecognized named-value: 'current-version'. Located at position 1 within expression: current-version
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}