Skip to content

Commit 6270a4c

Browse files
committed
configure publish
1 parent d328496 commit 6270a4c

File tree

4 files changed

+64
-0
lines changed

4 files changed

+64
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish Package
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*' # Triggers on tags like v1.2.3, v2.0.0, etc.
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v5
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: '24'
19+
registry-url: 'https://registry.npmjs.org'
20+
21+
- name: Get version from tag
22+
id: version
23+
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
24+
25+
- name: Update package.json version
26+
run: npm version ${{ steps.version.outputs.VERSION }} --no-git-tag-version
27+
28+
- name: Publish to npm
29+
run: npm publish
30+
env:
31+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.github/

package-lock.json

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "@systemathics/ganymede-apis",
3+
"version": "1.0.0",
4+
"description": "Systemathics Ganymede API",
5+
"repository": {
6+
"type": "git",
7+
"url": "git+ssh://git@github.com/systemathics/sdk-typescript.git"
8+
},
9+
"author": "Systemathics Team",
10+
"license": "MIT",
11+
"bugs": {
12+
"url": "https://github.com/systemathics/sdk-typescript/issues"
13+
},
14+
"publishConfig": {
15+
"access": "public"
16+
},
17+
"keywords": ["systemathics", "ganymede"],
18+
"homepage": "https://github.com/systemathics/sdk-typescript#readme"
19+
}

0 commit comments

Comments
 (0)