Skip to content

chore: publish #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading