Skip to content

Publish package to npm #4

Publish package to npm

Publish package to npm #4

Workflow file for this run

# Publish package to the npm registry
name: Publish Package
on:
# Run the workflow when a new tag is pushed starting with `v`
# push:
# tags:
# - 'v*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v6
- name: Set up Node
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm --filter "@skirtle/create-vue-lib" run build
- name: Publish
run: pnpm --filter "@skirtle/create-vue-lib" publish
docs:

Check failure on line 37 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / Publish Package

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 37, Col: 3): Error calling workflow 'skirtles-code/create-vue-lib/.github/workflows/pages.yml@02f9a066bedbc62985d9ac00c5bcd1044936e54f'. The workflow is requesting 'pages: write', but is only allowed 'pages: none'.
uses: ./.github/workflows/pages.yml