Skip to content

chore: fix linter issues #42

chore: fix linter issues

chore: fix linter issues #42

Workflow file for this run

# Continuous Integration jobs for changes pointed to main.
---
name: Main
'on':
merge_group:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
permissions:
contents: read
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Prepare job
uses: ./.github/actions/pnpm-install
- name: Check formatting
run: pnpm run check-format
- name: Lint
run: pnpm run lint
- name: Run tests
run: pnpm run test
release:
name: Release
if: github.repository == 'bfra-me/works' && github.ref == 'refs/heads/main'
needs:
- ci
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- id: get-workflow-access-token
name: Get Workflow Access Token
uses: peter-murray/workflow-application-token-action@dc0413987a085fa17d19df9e47d4677cf81ffef3 # v3.0.0
with:
application_id: ${{ secrets.APPLICATION_ID }}
application_private_key: ${{ secrets.APPLICATION_PRIVATE_KEY }}
permissions: 'contents:write, issues:write, pull_requests:write'
revoke_token: true
- name: Setup Git user
run: |
git config --global user.email '118100583+bfra-me[bot]@users.noreply.github.com'
git config --global user.name 'bfra-me[bot]'
- name: Checkout repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
fetch-depth: 0
token: ${{ steps.get-workflow-access-token.outputs.token }}
- name: Prepare job
uses: ./.github/actions/pnpm-install
- name: Perform a dry run of `pnpm publish`
run: pnpm -r publish --dry-run
- name: Create Release Pull Request or Publish to npm
uses: changesets/action@aba318e9165b45b7948c60273e0b72fce0a64eb9 # v1.4.7
with:
commit: 'chore(changesets): publish packages'
publish: pnpm publish-changesets
setupGitUser: false
title: 'chore(🦋📦): publish packages'
version: pnpm version-changesets
env:
GITHUB_TOKEN: ${{ steps.get-workflow-access-token.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}