feat(tsconfig): enable verbatimModuleSyntax
#1653
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
# Continuous Integration jobs for this repository. | |
--- | |
name: CI | |
'on': | |
merge_group: | |
push: | |
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 | |
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0 | |
- name: Setup Node.js | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
cache: pnpm | |
node-version-file: '.node-version' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- 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@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
with: | |
fetch-depth: 0 | |
token: ${{ steps.get-workflow-access-token.outputs.token }} | |
- name: Enable corepack | |
run: corepack enable | |
- name: Setup Node.js | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
cache: pnpm | |
node-version-file: '.node-version' | |
- name: Install dependencies and build packages | |
env: | |
HUSKY: 0 | |
run: pnpm bootstrap | |
- 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 }} |