Skip to content

chore: lots more progress #41

chore: lots more progress

chore: lots more progress #41

Workflow file for this run

name: 'Release'

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

View workflow run for this annotation

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

Invalid workflow file

(Line: 3, Col: 1): Unexpected value 'inputs', (Line: 21, Col: 1): Unexpected value 'runs', (Line: 1, Col: 1): Required property is missing: jobs
description: 'Releases a package'
inputs:
scope:
description: 'The package to release. Must match a package specified in lerna.json.'
tag:
description: 'The tag to publish to on NPM (DRY RUN).'
preid:
description: 'The prerelease identifier used when doing a prerelease.'
working-directory:
required: true
description: 'The directory of the package to deploy.'
node-version:
description: 'Node.js version to use for publishing.'
required: false
default: '20.10.0'
registry-url:
description: 'Registry URL to publish to.'
required: false
default: 'https://registry.npmjs.org'
runs:
using: 'composite'
steps:
- name: 📦 Install pnpm
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
- name: 🟢 Use Node
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: ${{ inputs.node-version }}
cache: 'pnpm'
registry-url: ${{ inputs.registry-url }}
scope: '@stencil'
- name: 🔄 Ensure Latest npm
run: npm install -g npm@latest
shell: bash
- name: Install Dependencies
run: pnpm --filter ${{ inputs.scope }} install
shell: bash
working-directory: ${{ inputs.working-directory }}
- name: 🏗️ Run Build
run: pnpm run build
shell: bash
working-directory: ${{ inputs.working-directory }}
- name: 🚀 Publish to NPM
run: npm publish --tag ${{ inputs.tag }} --provenance
shell: bash
working-directory: ${{ inputs.working-directory }}