Skip to content

Commit

Permalink
Merge pull request #13 from inaiat/chore/jsr
Browse files Browse the repository at this point in the history
Chore/jsr
  • Loading branch information
inaiat authored Oct 6, 2024
2 parents 6a27262 + 6b285d1 commit 5f0c68b
Show file tree
Hide file tree
Showing 8 changed files with 177 additions and 126 deletions.
37 changes: 19 additions & 18 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
push:
branches:
- main
- chore/jsr


jobs:
publish:
Expand All @@ -15,26 +17,25 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
# - name: Set up Node.js
# uses: actions/setup-node@v2
# with:
# node-version: '20'
# registry-url: 'https://registry.npmjs.org'

- name: Install corepack
run: npm install -g corepack && corepack enable
# - name: Install corepack
# run: npm install -g corepack && corepack enable

- name: Install dependencies
run: pnpm install
# - name: Install dependencies
# run: pnpm install

- name: Build and test
run: pnpm build && pnpm test
# - name: Build and test
# run: pnpm build && pnpm test

- name: Publish package
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# - name: Publish package on JSR
# run: pnpm dlx jsr publish
# - name: Publish package
# run: npm publish --access public
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish package on JSR
run: npx jsr publish
1 change: 0 additions & 1 deletion BUILD_SHA

This file was deleted.

22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
MIT License

Copyright (c) 2019 Giorgio Delgado

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

12 changes: 10 additions & 2 deletions jsr.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{
"name": "@inaiat/resultar",
"version": "1.1.2",
"exports": "./src/index.ts"
"version": "1.3.1",
"license": "MIT",
"exports": "./src/index.ts",
"publish": {
"include": [
"LICENSE",
"README.md",
"src/**/*.ts"
]
}
}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "resultar",
"version": "1.3.0",
"version": "1.3.1",
"description": "Result pattern for typescript",
"type": "module",
"packageManager": "[email protected]",
Expand All @@ -19,7 +19,7 @@
"dist"
],
"scripts": {
"build": "tsup && git rev-parse HEAD > BUILD_SHA",
"build": "tsup",
"format": "dprint fmt",
"lint": "dprint check && eslint",
"lint:fix": "dprint fmt && eslint --fix",
Expand Down Expand Up @@ -53,7 +53,7 @@
"devDependencies": {
"@types/node": "^22.7.4",
"dprint": "0.47.2",
"eslint": "^9.11.1",
"eslint": "^9.12.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-n": "^17.10.3",
"eslint-plugin-unicorn": "^56.0.0",
Expand All @@ -63,7 +63,7 @@
"testdouble": "^3.20.2",
"tsup": "^8.3.0",
"tsx": "^4.19.1",
"typedoc": "^0.26.7",
"typedoc": "^0.26.8",
"typedoc-github-wiki-theme": "2.0.0",
"typedoc-plugin-markdown": "^4.2.9",
"typescript": "^5.6.2",
Expand Down
Loading

0 comments on commit 5f0c68b

Please sign in to comment.