Add JS-SDK publish workflow
All checks were successful
Publish JS SDK / docker (push) Successful in 15s
All checks were successful
Publish JS SDK / docker (push) Successful in 15s
This commit is contained in:
parent
f536f5dad6
commit
edf386ebca
40
.gitea/workflows/publish-js-sdk.yml
Normal file
40
.gitea/workflows/publish-js-sdk.yml
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
name: Publish JS SDK
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ["master"]
|
||||||
|
paths:
|
||||||
|
[
|
||||||
|
".gitea/workflows/publish-js-sdk.yml",
|
||||||
|
"JS-SDK/**",
|
||||||
|
"!JS-SDK/README.md",
|
||||||
|
"!README.md",
|
||||||
|
"!LICENSE.md",
|
||||||
|
]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: "./JS-SDK"
|
||||||
|
|
||||||
|
# Steps to run
|
||||||
|
steps:
|
||||||
|
# Checkout the repo
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
# Setup Bun
|
||||||
|
- name: Setup Bun
|
||||||
|
uses: oven-sh/setup-bun@v1
|
||||||
|
|
||||||
|
# Install Dependencies
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: bun install --frozen-lockfile
|
||||||
|
|
||||||
|
# Publish to NPM
|
||||||
|
- name: Publish to NPM
|
||||||
|
run: npm publish
|
||||||
|
env:
|
||||||
|
NPM_TOKEN: ${{ secrets.PUBLISH_NPM_TOKEN }}
|
Loading…
x
Reference in New Issue
Block a user