From 55c36967e726c6c76b1197023b0a3bccb4cce4e0 Mon Sep 17 00:00:00 2001 From: ftery0 Date: Fri, 24 Jan 2025 18:52:57 +0900 Subject: [PATCH] root npm publish --- .github/workflows/release.yml | 7 +++++-- .npmignore | 9 +++++++++ package.json | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .npmignore diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 475f59d..f35311a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,9 +35,12 @@ jobs: - name: Build the project run: pnpm run rollup + - name: Verify package contents + run: npm pack --dry-run + - name: Publish to NPM run: | echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc - pnpm publish dist --access public + pnpm publish --access public env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..0e71a6e --- /dev/null +++ b/.npmignore @@ -0,0 +1,9 @@ +*.log +./babel.config.js +./pnpm-lock.yaml +./pnpm-workspace.yaml +./rollup.config.js +README.md +.github +.changeset +.gitignore \ No newline at end of file diff --git a/package.json b/package.json index 5ecdc01..93bda87 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@b1nd/dds-web", - "version": "0.1.0", + "version": "0.1.1", "type": "module", "types": "dist/index.d.ts", "main": "dist/cjs/index.cjs.js",