Skip to content

Commit

Permalink
chore: add npm publish for the SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
ns212 committed Oct 11, 2023
1 parent 8e5a1bb commit 753ec7e
Show file tree
Hide file tree
Showing 3 changed files with 1,660 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "npm"
directory: "/sdk"
schedule:
interval: "weekly"
24 changes: 24 additions & 0 deletions .github/workflows/sdk-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: SDK NPM Publish
on:
push:
jobs:
publish:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./sdk
steps:
- uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v3
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
always-auth: true
- run: npm ci
- run: npm test
continue-on-error: true
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
Loading

0 comments on commit 753ec7e

Please sign in to comment.