RESTfulMC/.gitea/workflows/deploy-lib.yml
Rainnny7 d49c9b20e4
Some checks failed
Deploy API / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m0s
Deploy Lib / docker (ubuntu-latest, 2.44.0) (push) Failing after 1m4s
Update deploy lib workflow
2024-04-14 16:51:19 -04:00

44 lines
859 B
YAML

name: Deploy Lib
on:
push:
branches: ["master"]
paths: [".gitea/workflows/deploy-lib.yml", "Lib/**"]
jobs:
docker:
strategy:
matrix:
arch: ["ubuntu-latest"]
git-version: ["2.44.0"]
runs-on: ${{ matrix.arch }}
defaults:
run:
working-directory: ./Lib
# Steps to run
steps:
# Checkout the repo
- name: Checkout
uses: actions/checkout@v4
# Setup Bun
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
no-cache: false
# 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:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}