RESTfulMC/.gitea/workflows/deploy-lib.yml

39 lines
707 B
YAML
Raw Normal View History

2024-04-14 13:15:47 -07:00
name: Deploy Lib
on:
push:
branches: ["master"]
paths: ["Lib/**"]
jobs:
docker:
strategy:
matrix:
arch: ["ubuntu-latest"]
git-version: ["2.44.0"]
node-version: ["20.x"]
runs-on: ${{ matrix.arch }}
defaults:
run:
working-directory: ./Lib
# Steps to run
steps:
# Checkout the repo
- name: Checkout
uses: actions/checkout@v4
2024-04-14 13:19:18 -07:00
# Setup Bun
- name: Setup Bun
uses: oven-sh/setup-bun@v1
2024-04-14 13:15:47 -07:00
2024-04-14 13:19:18 -07:00
# Run Tests
- name: Run Tests
run: bun test
# Publish to NPM
2024-04-14 13:15:47 -07:00
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}