Skip to content

Commit

Permalink
Merge pull request #34 from bob-collective/sdk-build
Browse files Browse the repository at this point in the history
chore: add npm publish for the SDK
  • Loading branch information
ns212 authored Oct 12, 2023
2 parents d3d0f0c + e4d1074 commit a17038d
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:
tag:
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 a17038d

Please sign in to comment.