Merge remote-tracking branch 'origin/main' #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | |