Tether/.gitea/workflows/publish-npm.yml

41 lines
791 B
YAML
Raw Permalink Normal View History

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