Skip to content

Commit

Permalink
registry
Browse files Browse the repository at this point in the history
  • Loading branch information
YadBro committed Apr 28, 2022
1 parent b48094c commit 0346987
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 14 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12
- run: npm ci
- run: npm test

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@YadBro:registry=https://npm.pkg.github.com
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This is a package module javascript for calculate the distance between two point
Use npm, make sure your npm is up to date.

```
npm install calculating-date --save
npm install calculating-date
```

## Usage
Expand Down
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
{
"type": "module",
"name": "calculating-date",
"version": "1.1.8",
"version": "1.1.9",
"description": "This is for calculate date from startDate and endDate",
"main": "mymodule.mjs",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": " \"Error: no test specified\" && exit 0"
},
"author": "Yadi Apriyadi",
"license": "MIT",
"dependencies": {
"calculating-date": "^1.0.8",
"moment": "^2.29.3"
},
"publishConfig": {
"@YadBro:registry": "https://npm.pkg.github.com"
},
"repository": {
"type": "git",
"url": "git+https://github.com/YadBro/Calculating-Date.git"
Expand Down

0 comments on commit 0346987

Please sign in to comment.