Skip to content

Commit

Permalink
Merge pull request #7 from hmhard/readme-update
Browse files Browse the repository at this point in the history
Readme update
  • Loading branch information
hmhard authored Apr 19, 2023
2 parents ee0ee30 + 952bf04 commit b22a2d3
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 4 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: 16
- 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: 16
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
5 changes: 3 additions & 2 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
registry=https://npm.pkg.github.com/hmhard
//npm.pkg.github.com/:_authToken=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
//npm.pkg.github.com/:_authToken=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
@hmhard:registry=https://npm.pkg.github.com

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
},
"repository": {
"type": "git",
"url": "/~https://github.com/hmhard/amharic-digital-clock"
"url": "/~https://github.com/hmhard/amharic-digital-clock.git"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/hmhard",
"registry": "https://npm.pkg.github.com",
"@hmhard:registry": "https://npm.pkg.github.com",
"access": "public"
},
"dependencies": {
Expand Down

0 comments on commit b22a2d3

Please sign in to comment.