RESTfulMC/.gitea/workflows/publish-js-sdk.yml
Braydon 158b3ec69e
Some checks failed
Publish JS SDK / docker (push) Failing after 16s
Update .gitea/workflows/publish-js-sdk.yml
2024-04-15 13:32:01 -07:00

38 lines
742 B
YAML

name: Publish JS SDK
on:
push:
branches: ["master"]
paths: [".gitea/workflows/publish-js-sdk.yml", "JS-SDK/**"]
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
# Run Tests
- name: Run Tests
run: bun test
# Publish to NPM
- name: Publish to NPM
run: npm publish
env:
NPM_TOKEN: ${{ secrets.PUBLISH_NPM_TOKEN }}