-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (35 loc) · 992 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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: 🛰️ Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: 💂 Error
if: failure()
run: |
echo "${{ github.event_name }} failed on branch ${{ github.ref }} at commit ${{ github.sha }}"
echo "See ${{ github.run_number }} for more details"