build(deps): update msgpackr requirement from ^1.9.9 to ^1.10.1 #117
Workflow file for this run
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 | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
Test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install bun | |
uses: oven-sh/setup-bun@v1 | |
- name: Install dependencies | |
run: bun install --no-save | |
- name: Validate PR commits with commitlint | |
if: github.event_name == 'pull_request' | |
run: bun run commitlint --from=origin/main --to=HEAD | |
- name: Validate code formatting | |
run: | | |
bun run format | |
if [[ $(git status --porcelain) ]]; then | |
echo "Code not properly formatted. Please run 'bun run format' locally and commit changes." | |
exit 1 | |
fi | |
- name: Lint & check types | |
run: bun run lint | |
- name: Test | |
run: bun test | |
Release: | |
needs: [Test] | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
if: | | |
github.ref == 'refs/heads/main' && | |
github.event.repository.fork == false | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Install bun | |
uses: oven-sh/setup-bun@v1 | |
- name: Install dependencies | |
run: bun install | |
- name: Setup node | |
# node needed or semantic-release complains when publishing npm | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: bun run semantic-release |