Skip to content

fix(ci): restore conventional-commits-parser entry in package-lock.json #21

fix(ci): restore conventional-commits-parser entry in package-lock.json

fix(ci): restore conventional-commits-parser entry in package-lock.json #21

Workflow file for this run

name: Publish Preview to npm
# Manual-dispatch only. Builds, tests, runs `release:prepare` to rewrite
# any local file: deps to semver ranges, publishes under the chosen
# dist-tag (default: `next`), then restores `package.json`.
#
# Usage from the GitHub UI: Actions -> Publish Preview to npm -> Run workflow.
on:
workflow_dispatch:
inputs:
tag:
description: 'npm dist-tag (default: next)'
required: false
default: 'next'
permissions:
contents: read
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.19.0
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm test
- name: Prepare publish (rewrite file: deps to ranges)

Check failure on line 45 in .github/workflows/publish-preview.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish-preview.yml

Invalid workflow file

You have an error in your yaml syntax on line 45
run: npm run release:prepare
- name: Publish to npm
run: npm publish --tag ${{ inputs.tag }} --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Restore package.json
if: always()
run: npm run release:restore