41 lines
791 B
YAML
41 lines
791 B
YAML
name: Publish JS SDK
|
|
|
|
on:
|
|
push:
|
|
branches: ["master"]
|
|
paths:
|
|
[
|
|
".gitea/workflows/publish-npm.yml",
|
|
"use-tether/**",
|
|
"!use-tether/README.md",
|
|
"!README.md",
|
|
"!LICENSE.md",
|
|
]
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: "ubuntu-latest"
|
|
defaults:
|
|
run:
|
|
working-directory: "./use-tether"
|
|
|
|
# Steps to run
|
|
steps:
|
|
# Checkout the repo
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
# Setup Bun
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
|
|
# 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 }}
|