Update package description #20
This file contains hidden or 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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.number || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # to create a release (changesets/action) | |
pull-requests: write # to create a pull-request (changesets/action) | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: Install dependencies | |
run: bun install --frozen-lockfile | |
env: | |
SKIP_POSTINSTALL: 1 | |
- name: Lint | |
run: bun run lint | |
- name: Test | |
run: bun run test | |
- name: Create release pull-request or publish packages | |
if: github.event_name == 'push' && github.workflow == 'CI' | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
version: bun run ci:version | |
publish: bun run ci:release | |
title: "[Release]: changesets 📦" | |
commit: "📦 Version packages" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |