Skip to content

Commit

Permalink
chore: preparing package release
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed Jan 25, 2024
1 parent a74b9d4 commit b2081a8
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,24 @@ jobs:
needs: release-please
runs-on: ubuntu-latest
if: ${{ needs.release-please.outputs.release_created }}
permissions:
packages: write
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# TODO: create package and upload to GitHub
- name: Set up node 20.x
uses: actions/setup-node@v3
with:
node-version: "20.x"
cache: "npm"
registry-url: https://npm.pkg.github.com/

- name: Install dependencies
run: npm ci

- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.BOT_TOKEN }}
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@bihealth:registry=https://npm.pkg.github.com
always-auth=true
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"name": "reev-frontend-lib",
"name": "@bihealth/reev-frontend-lib",
"version": "0.4.0",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/bihealth/reev-frontend-lib.git"
},
"scripts": {
"test:unit": "vitest --coverage",
"test:unit:nocov": "vitest",
Expand All @@ -10,6 +13,9 @@
"format": "prettier --write src/ *.ts *.mts *.json",
"format:check": "prettier --list-different src/ *.ts *.mts *.json"
},
"publishConfig": {
"@bihealth:registry": "https://npm.pkg.github.com"
},
"dependencies": {
"@mdi/font": "^7.3.67",
"@reactgular/chunks": "^1.0.1",
Expand Down

0 comments on commit b2081a8

Please sign in to comment.