Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tarball content is "empty" #39

Closed
josemarcilio opened this issue Jun 1, 2021 · 1 comment
Closed

Tarball content is "empty" #39

josemarcilio opened this issue Jun 1, 2021 · 1 comment

Comments

@josemarcilio
Copy link

When I try to publish through GH Actions, tarball content is:

npm notice === Tarball Contents === 
npm notice 1.5kB package.json
npm notice 894B  README.md   
npm notice === Tarball Details === 

But when I run locally (npm-publish), it is:

npm notice === Tarball Contents ===
npm notice 928B  README.md
npm notice 631B  dist/calendar/Calendar.d.ts
npm notice 463B  dist/calendar/CalendarContext.d.ts
npm notice 330B  dist/calendar/CalendarDate.d.ts
npm notice 298B  dist/calendar/CalendarDates.d.ts
npm notice 388B  dist/calendar/CalendarHeader.d.ts
npm notice 376B  dist/calendar/CalendarWeekday.d.ts
npm notice 150B  dist/calendar/useCalendarDates.d.ts
npm notice 77B   dist/calendar/useCalendarHeader.d.ts
npm notice 61B   dist/calendar/utils/generateDates.d.ts
npm notice 71B   dist/common/LocalesContext.d.ts
npm notice 49B   dist/index.d.ts
npm notice 4.0kB dist/react-date-controls.es.js
npm notice 4.6kB dist/react-date-controls.umd.js
npm notice 1.5kB package.json
npm notice === Tarball Details ===

My workflow file:

name: npm-publish
on:
  push:
    branches: [ main ]
jobs:
  publish:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - uses: actions/setup-node@v1
        with:
          node-version: 12.18.4
      - run: npm install
      - run: npm test
      - run: npm build
      - uses: JS-DevTools/npm-publish@v1
        with:
          token: ${{ secrets.NPM_AUTH_TOKEN }}
@josemarcilio
Copy link
Author

My bad.

Should run npm run build, not npm build before the publish

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant