Skip to content

github publish needs scoped package name #5

github publish needs scoped package name

github publish needs scoped package name #5

Workflow file for this run

name: Publish Node.js Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- run: npm ci
- run: npm test
publish-npm:
environment: publish
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org/'
- run: npm ci
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
publish-github:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: '24'
registry-url: 'https://npm.pkg.github.com'
scope: '@autopulated'
- run: sed -i 's/"name": "busybot"/"name": "@autopulated\/busybot"/g' package*.json

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

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 49
- run: npm ci
- run: echo $NPM_CONFIG_USERCONFIG && cat $NPM_CONFIG_USERCONFIG
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}