Skip to content

Commit

Permalink
chore: publish (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
merrycoder authored Dec 31, 2024
1 parent 2b99114 commit f0122d5
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 23 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/actions/release-npm-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release lib
# permissions required:
# contents: write
# packages: write
# pull-requests: read
# pull-requests: write
# checks: write

on:
workflow_call:
secrets:
RELEASER_APP_KEY:
description: the private key of the github app that will be used to create the release
required: true

jobs:
base-jobs:
uses: ./.github/workflows/lib-base.yml
secrets: inherit
permissions:
contents: read
packages: read
pull-requests: write
checks: write

release:
needs: base-jobs
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
pull-requests: read
steps:
- name: Release lib
uses: smg-real-estate/.github-ts/.github/actions/release@v0.8.10
with:
releaser-app-id: ${{ vars.RELEASER_APP_ID }}
releaser-app-key: ${{ secrets.RELEASER_APP_KEY }}
21 changes: 0 additions & 21 deletions .github/workflows/publish.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/release-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish Package to npmjs
on:
workflow_dispatch:
inputs:
semver:
type: choice
required: true
default: patch
options: [patch, minor, major]
description: The semver of the release.
jobs:
release:
uses: qualipool/swissrets-json/tree/master/.github/workflows/release-npm-package.yml
permissions:
contents: write
packages: write
pull-requests: write
checks: write
secrets: inherit
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "swissrets",
"name": "@qualipool/swissrets-json",
"version": "0.9.0",
"description": "A swiss real estate transfer standard.",
"directories": {
"doc": "docs"
"schema": "schema"
},
"scripts": {
"test:unit": "jest --config ./jest.config.js",
Expand Down

0 comments on commit f0122d5

Please sign in to comment.