diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index a2ae60e..a7be47a 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -5,18 +5,23 @@ on: jobs: publish-npm: + environment: prod runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - uses: actions/checkout@v4 - - name: Setup pnpm - uses: pnpm/action-setup@v3 # docs https://pnpm.io/continuous-integration#github-actions + - uses: oven-sh/setup-bun@v2 with: - version: 9 # Optional: specify a pnpm version - - run: pnpm install - - run: pnpm build + bun-version: latest + - uses: actions/setup-node@v4 + with: + node-version: '22.x' + registry-url: 'https://registry.npmjs.org' + + - run: bun install + - run: bun run build - name: Publish to NPM run: npm publish --provenance --access public env: diff --git a/.gitignore b/.gitignore index 8c67a06..06ada89 100644 --- a/.gitignore +++ b/.gitignore @@ -119,6 +119,7 @@ out .nuxt dist +build.js # Gatsby files @@ -173,5 +174,4 @@ dist # Finder (MacOS) folder config .DS_Store -extensions_support/ - +extensions_support/ \ No newline at end of file diff --git a/bun.lockb b/bun.lockb new file mode 100755 index 0000000..a836232 Binary files /dev/null and b/bun.lockb differ diff --git a/package.json b/package.json index 0a706fa..b60b015 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ }, "scripts": { "dev": "bun build.ts dev", - "build": "tsc build.ts", + "build": "bun build.ts", "publish": "npm publish --provenance" }, "dependencies": { diff --git a/src/camel-case.ts b/src/camel-case.ts index 7cb39e7..81ffb27 100644 --- a/src/camel-case.ts +++ b/src/camel-case.ts @@ -1,5 +1,5 @@ import {expose} from "@kksh/api/headless"; -import camelCase from "lodash/camelcase"; +import camelCase from "lodash/camelCase"; import {BaseExt} from "./base"; class CamelCaseExt extends BaseExt {