Skip to content

Commit fa6a692

Browse files
Merge pull request #1 from KeyValueSoftwareSystems/chore/publish-package
chore: publish package
2 parents 1fe1980 + 0e59e9f commit fa6a692

File tree

2 files changed

+35
-2
lines changed

2 files changed

+35
-2
lines changed

.github/workflows/publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish to npm
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- "v*.*.*"
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: "18"
19+
registry-url: "https://registry.npmjs.org/"
20+
always-auth: true
21+
22+
- name: Install deps & build
23+
run: |
24+
npm ci
25+
npm run build
26+
27+
- name: Publish to npm
28+
run: npm publish
29+
env:
30+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "siren-ts-sdk",
3-
"version": "1.0.0",
2+
"name": "@sirenapp/node",
3+
"version": "0.1.0",
44
"description": "TypeScript SDK for interacting with the Siren API",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -26,6 +26,9 @@
2626
],
2727
"author": "",
2828
"license": "MIT",
29+
"publishConfig": {
30+
"access": "public"
31+
},
2932
"repository": {
3033
"type": "git",
3134
"url": "git+https://github.com/KeyValueSoftwareSystems/siren-ts-sdk.git"

0 commit comments

Comments
 (0)