-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 1.15 KB
/
release.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
name: Release & Publish to NPM
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: "latest"
- name: Install Dependencies
run: bun install
- name: Lint & Check
run: bun run lint
- name: Build
run: bun run build
- name: Initialize Git
run: |
git config --global user.email "antho.eclips@gmail.com"
git config --global user.name "Anthony Bellancourt"
- name: Configure NPM
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Release
run: bun run release --ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}