Skip to content

Commit

Permalink
npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
dbushell committed Aug 28, 2024
1 parent f58e844 commit e071067
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/jsr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish
name: Publish JSR
on:
push:
branches:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -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 }}
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
/*
/*.*
!.gitignore
!.github
!LICENSE
!README.md
!deno.json
!package.json
!README.md
!LICENSE
!mod.ts
!types.ts
4 changes: 2 additions & 2 deletions deno.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
27 changes: 27 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
]
}

0 comments on commit e071067

Please sign in to comment.