Skip to content

ci(workflows): remove #13

ci(workflows): remove

ci(workflows): remove #13

Workflow file for this run

name: πŸ€Ήβ€β™‚οΈ Continuous Integration
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
name: 🍞 Deploy
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_EXISTS=$(npm show logixlysia version 2>/dev/null || echo "false")
if [ "$VERSION_EXISTS" != "false" ]; then
echo "Logixlysia version $VERSION_EXISTS already exists"
exit 1
fi
shell: bash
- name: πŸ§‘β€πŸ³ Check version is valid
run: |
VERSION=$(node -p "require('./package.json').version")
if [ "$VERSION" == "" ]; then
echo "Version is empty"
exit 1
fi
shell: bash
- name: πŸ›°οΈ Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: πŸ’‚ Error
if: failure() || cancelled()
run: |
echo "${{ github.event_name }} failed on branch ${{ github.ref }} at commit ${{ github.sha }}"
echo "See ${{ github.run_number }} for more details"
- name: πŸŽ‰ Success
if: success()
run: |
echo "${{ github.event_name }} succeeded on branch ${{ github.ref }} at commit ${{ github.sha }}"
echo "See ${{ github.run_number }} for more details"