Skip to content

Commit 73bc6ce

Browse files
authored
Open source package (#152)
1 parent 4667bc9 commit 73bc6ce

File tree

5 files changed

+82
-42
lines changed

5 files changed

+82
-42
lines changed

.github/workflows/deploy-release.yaml

+9-6
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
release:
55
types:
66
- published
7-
env:
8-
GCLOUD_PROJECT_DEV: "croct-dev"
97

108
jobs:
119
deploy-release:
@@ -14,8 +12,7 @@ jobs:
1412
- uses: actions/checkout@v4
1513
- uses: actions/setup-node@v4
1614
with:
17-
node-version: 16
18-
registry-url: 'https://npm.pkg.github.com'
15+
node-version: 20
1916
env:
2017
NODE_AUTH_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}
2118

@@ -46,10 +43,16 @@ jobs:
4643
if: ${{ github.event.release.prerelease }}
4744
run: |-
4845
cd build
49-
npm publish --tag next
46+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
47+
npm publish --access public --tag next
48+
env:
49+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5050

5151
- name: Publish release to NPM
5252
if: ${{ !github.event.release.prerelease }}
5353
run: |-
5454
cd build
55-
NODE_AUTH_TOKEN=${{ secrets.GITHUB_TOKEN }} npm publish
55+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
56+
npm publish --access public
57+
env:
58+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Croct.com
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
A <a href="https://datatracker.ietf.org/doc/html/rfc6901">RFC 6901</a> compliant JSON pointer library to handle arbitrary structured data.
99
</p>
1010
<p align="center">
11+
<a href="https://www.npmjs.com/package/@croct/json-pointer"><img alt="Version" src="https://img.shields.io/npm/v/@croct/json-pointer"/></a>
1112
<a href="https://github.com/croct-tech/json-pointer-js/actions/workflows/validate-branch.yaml"><img alt="Build" src="https://github.com/croct-tech/json-pointer-js/actions/workflows/validate-branch.yaml/badge.svg" /></a>
1213
<a href="https://codeclimate.com/repos/6224bc798bc258016500056f/test_coverage"><img src="https://api.codeclimate.com/v1/badges/692b087d6472a80bb509/test_coverage" /></a>
1314
<a href="https://codeclimate.com/repos/6224bc798bc258016500056f/maintainability"><img src="https://api.codeclimate.com/v1/badges/692b087d6472a80bb509/maintainability" /></a>

package-lock.json

+47-32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"name": "@croct-tech/json-pointer",
2+
"name": "@croct/json-pointer",
33
"version": "0.0.0-dev",
44
"description": "A RFC6901 compliant type-safe JSON pointer library to handle arbitrary structured data.",
55
"author": {
66
"name": "croct",
77
"email": "[email protected]",
88
"url": "https://github.com/croct-tech/json-pointer-js"
99
},
10-
"license": "PRIVATE",
10+
"license": "MIT",
1111
"keywords": [
1212
"croct",
1313
"typescript",
@@ -31,13 +31,13 @@
3131
"build": "tsc -p tsconfig.build.json"
3232
},
3333
"dependencies": {
34-
"@croct/json": "^2.0.1"
34+
"@croct/json": "^2.1.0"
3535
},
3636
"devDependencies": {
3737
"@croct/eslint-plugin": "^0.7.0",
3838
"@types/jest": "^29.0.0",
3939
"@typescript-eslint/parser": "^7.0.0",
40-
"eslint": "^9.0.0",
40+
"eslint": "^8.57.1",
4141
"jest": "^29.0.0",
4242
"jest-extended": "^4.0.0",
4343
"ts-jest": "^29.0.0",

0 commit comments

Comments
 (0)