Skip to content

Commit

Permalink
Added files
Browse files Browse the repository at this point in the history
  • Loading branch information
FajarKim committed Oct 17, 2023
1 parent f5e6ca2 commit 7ae5cd9
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 5 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/setup-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish package to GitHub Packages
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file
scope: '@FajarKim'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
@FajarKim:registry=https://npm.pkg.github.com
always-auth=true
2 changes: 1 addition & 1 deletion package-lock.json

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

13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "github-readme-profile",
"name": "@FajarKim/github-readme-profile",
"version": "1.0.0",
"description": "Generate your Stats GitHub Profile in SVG",
"description": "🙀 Generate your Stats GitHub Profile in SVG",
"main": "api/index.ts",
"dependencies": {
"axios": "^1.5.1",
Expand All @@ -19,11 +19,16 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/FajarKim/github-readme-profile.git"
"url": "https://github.com/FajarKim/github-readme-profile.git"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
"keywords": [
"github-readme-stats",
"github-stats"
"github-stats",
"github-readme-profile",
"github-profile-stats"
],
"bugs": {
"url": "https://github.com/FajarKim/github-readme-profile/issues"
Expand Down

0 comments on commit 7ae5cd9

Please sign in to comment.