N
Nuxt4mo ago
Nisthar

Why can't i publish a nuxt module using github?

I am trying to publish a private nuxt module using github actions. This is my .github/workflows/ci.yml:
name: ci

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://npm.pkg.github.com/
scope: '@Nisthar'

- name: cache node_modules
uses: actions/cache@v4
with:
path: node_modules
key: node-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npx nypm@latest i


- name: Prepare
run: npm run prepare

- name: Prepack
run: npm run prepack

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.MY_GITHUB_TOKEN}}
name: ci

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://npm.pkg.github.com/
scope: '@Nisthar'

- name: cache node_modules
uses: actions/cache@v4
with:
path: node_modules
key: node-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npx nypm@latest i


- name: Prepare
run: npm run prepare

- name: Prepack
run: npm run prepack

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.MY_GITHUB_TOKEN}}
I am getting the error:
No description
1 Reply
Nisthar
NistharOP4mo ago
It builds fine in localhost
Want results from more Discord servers?
Add your server