diff --git a/.changeset/config.json b/.changeset/config.json new file mode 100644 index 0000000..d4dfac0 --- /dev/null +++ b/.changeset/config.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://unpkg.com/@changesets/config@3.0.2/schema.json", + "changelog": "@changesets/cli/changelog", + "commit": false, + "fixed": [], + "linked": [], + "access": "public", + "baseBranch": "main", + "updateInternalDependencies": "patch", + "ignore": [] +} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..f4decca --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,34 @@ +name: Release + +on: + push: + branches: + - main + - workflow + +concurrency: ${{ github.workflow }}-${{ github.ref }} + +jobs: + release: + name: Release + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + registry-url: 'https://registry.npmjs.org' + scope: "@kanamone" + - run: bun install --frozen-lockfile + - run: bun run test + - run: bun run build + - name: Create Release Pull Request or Publish to npm + id: changesets + uses: changesets/action@v1 + with: + publish: bun run release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/bun.lockb b/bun.lockb index 8616d5a..8668ab2 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 6c0ab1f..fe85550 100644 --- a/package.json +++ b/package.json @@ -1,16 +1,23 @@ { - "name": "edge-id2", + "version": "0.0.1", + "name": "@kanamone/edge-id2", "scripts": { "prebuild": "bun run tsc --build", "build": "bun run build.ts", - "test": "jest" + "test": "jest", + "prepublishOnly": "bun run build", + "release": "changeset publish" }, "main": "lib/index.js", "types": "lib/index.d.ts", "files": [ "lib" ], + "author": "AOKI Yuto ", + "homepage": "https://github.com/kanamone/edge-id2", + "license": "MIT", "devDependencies": { + "@changesets/cli": "^2.27.7", "@types/bun": "latest", "@types/jest": "^29.5.12", "jest": "^29.7.0",