Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
add npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdiesletering committed Jun 2, 2023
1 parent 412625c commit 5a89d58
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 3 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}}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@ferdiesletering:registry=https://npm.pkg.github.com
12 changes: 9 additions & 3 deletions projects/api/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
{
"name": "api",
"name": "@ferdiesletering/capitaldotcom/api",
"version": "0.0.1",
"peerDependencies": {
"@angular/common": "^15.0.0",
"@angular/core": "^15.0.0"
},
"dependencies": {
"tslib": "^2.3.0"
}
}
},
"repository": {
"type": "git",
"url": "git@github.com:ferdiesletering/capitaldotcom.git"
},
"publishConfig": {
"@ferdiesletering:registry": "https://npm.pkg.github.com"
}

0 comments on commit 5a89d58

Please sign in to comment.