Skip to content

Commit

Permalink
ci: publish using github releases
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoenig134 committed Feb 12, 2025
1 parent cbc9ec8 commit 3dd5b8b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
9 changes: 7 additions & 2 deletions .ci/publish.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
set -e
set -x

# TODO: enable this when we are ready to release
# npx enhanced-publish --if-possible --use-preid-as-tag
if [ -z "$VERSION" ]; then
echo "The environment variable 'VERSION' must be set."
exit 1
fi

npm version $VERSION
npx enhanced-publish --if-possible --use-preid-as-tag
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish

on:
push:
branches: [main]
tags: "*"

jobs:
publish-npm:
Expand All @@ -20,3 +20,4 @@ jobs:
- run: bash .ci/publish.sh
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
VERSION: ${{ github.ref_name }}
1 change: 0 additions & 1 deletion package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "@nmshd/connector-manager",
"version": "0.1.0",
"repository": "github:nmshd/connector-manager",
"license": "MIT",
"author": "j&s-soft GmbH",
Expand Down

0 comments on commit 3dd5b8b

Please sign in to comment.