Skip to content

fix(deps): update dependency @types/node to v20.14.5 (#300) #2035

fix(deps): update dependency @types/node to v20.14.5 (#300)

fix(deps): update dependency @types/node to v20.14.5 (#300) #2035

Workflow file for this run

# Continuous Integration jobs for this repository.
---
name: CI
'on':
merge_group:
push:
branches: [main]
pull_request:
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:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Prepare job
uses: ./.github/actions/prepare
- 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.event_name == 'push' && github.ref == 'refs/heads/main'
needs:
- test
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
token: ${{ steps.get-workflow-access-token.outputs.token }}
- name: Prepare job
uses: ./.github/actions/prepare
- 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 }}