Skip to content

fix(utils): update jsdocs #19

fix(utils): update jsdocs

fix(utils): update jsdocs #19

Workflow file for this run

name: πŸ€Ήβ€β™‚οΈ Continuous Integration
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test:
name: πŸ§ͺ Test
runs-on: ubuntu-latest
steps:
- name: πŸ›« Checkout Code
uses: actions/checkout@v4
- name: πŸ“¦ Setup Node
uses: actions/setup-node@v4
with:
node-version: 21
registry-url: https://registry.npmjs.org/
scope: '@pungrumpy'
- name: πŸš€ Setup Bun
uses: oven-sh/setup-bun@v1
- name: πŸ”½ Install Dependencies
run: bun install
- name: βš–οΈ Lint
run: bun lint
- name: πŸ§‘β€πŸ³ Check version exists
run: |
VERSION=$(node -p "require('./package.json').version")
VERSION_ON_NPM=$(npm show logixlysia version 2>/dev/null || echo "false")
if [ "$VERSION" = "$VERSION_ON_NPM" ]; then
touch .version
echo "βœ… Version $VERSION exists on npm"
echo "βœ… Version $VERSION exists on npm" > .version
else
touch .version
echo "❌ Version $VERSION does not exist on npm"
echo "❌ Version $VERSION does not exist on npm" > .version
fi
shell: bash
- name: πŸ˜Άβ€πŸŒ«οΈ Upload artifacts
uses: actions/upload-artifact@v3
if: failure()
with:
name: logs
path: |
.version
build:
name: 🍞 Deploy
runs-on: ubuntu-latest
needs: test
steps:
- name: πŸ›« Checkout Code
uses: actions/checkout@v4
- name: πŸ“¦ Setup Node
uses: actions/setup-node@v4
with:
node-version: 21
registry-url: https://registry.npmjs.org/
scope: '@pungrumpy'
- name: πŸš€ Setup Bun
uses: oven-sh/setup-bun@v1
- name: πŸ”½ Install Dependencies
run: bun install
- name: πŸ›°οΈ Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
report:
name: πŸ“Š Report
needs: [test, build]
runs-on: ubuntu-latest
if: failure()
steps:
- name: πŸ‘§ Information output
run: |
echo "⚠️ Something went wrong"
echo "πŸ“¦ Package: ${{ github.repository }}"
echo "πŸ“ Commit: ${{ github.sha }}"
echo "🌐 Workflow: ${{ github.workflow }}"
echo "πŸ“… Date: $(date)"
echo "πŸ§‘β€πŸ’» Author: ${{ github.actor }}"
echo "πŸ“„ Ref: ${{ github.ref }}"
shell: bash