diff --git a/.github/workflows/jsr.yml b/.github/workflows/jsr.yml index ad5781d..08302ca 100644 --- a/.github/workflows/jsr.yml +++ b/.github/workflows/jsr.yml @@ -1,4 +1,4 @@ -name: Publish +name: Publish JSR on: push: branches: diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml new file mode 100644 index 0000000..c81321d --- /dev/null +++ b/.github/workflows/npm.yml @@ -0,0 +1,24 @@ +name: Publish NPM +on: + push: + branches: + - main + +jobs: + publish: + runs-on: ubuntu-latest + + permissions: + contents: read + id-token: write + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: '22.x' + registry-url: 'https://registry.npmjs.org' + - run: npm publish --provenance --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.gitignore b/.gitignore index 6fa41ef..d332072 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,10 @@ /* +/*.* !.gitignore !.github -!LICENSE -!README.md !deno.json +!package.json +!README.md +!LICENSE !mod.ts !types.ts diff --git a/deno.json b/deno.json index 44b66dd..16abb6d 100644 --- a/deno.json +++ b/deno.json @@ -1,12 +1,12 @@ { "name": "@dbushell/jsonlike", - "version": "0.2.2", + "version": "0.2.3", "exports": { ".": "./mod.ts", "./types": "./types.ts" }, "publish": { - "include": ["deno.json", "mod.ts", "types.ts", "LICENSE", "README.md"], + "include": ["mod.ts", "types.ts", "deno.json", "LICENSE", "README.md"], "exclude": [".github"] }, "lint": { diff --git a/package.json b/package.json new file mode 100644 index 0000000..9078ce0 --- /dev/null +++ b/package.json @@ -0,0 +1,27 @@ +{ + "name": "@dbushell/jsonlike", + "version": "0.2.3", + "repository": { + "type": "git", + "url": "git+https://github.com/dbushell/jsonlike.git" + }, + "description": "Just enough JavaScript object validation.", + "keywords": [ + "json", + "typescript" + ], + "license": "MIT", + "type": "module", + "exports": { + ".": "./mod.ts", + "./types": "./types.ts" + }, + "types": "types.ts", + "files": [ + "mod.ts", + "types.ts", + "package.json", + "LICENSE", + "README.md" + ] +}