diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 940c6d0..9fa63c9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,25 +1,25 @@ name: Publish NPM Package on: - push: - tags: - - '*' + push: + tags: + - '*' jobs: - package: - runs-on: ubuntu-latest - name: Publish NPM Package + package: + runs-on: ubuntu-latest + name: Publish NPM Package - steps: - - name: Cloning repo - uses: actions/checkout@v3 + steps: + - name: Cloning repo + uses: actions/checkout@v3 - - uses: actions/setup-node@v4 - with: - node-version: '18.x' - registry-url: 'https://registry.npmjs.org' + - uses: actions/setup-node@v4 + with: + node-version: '18.x' + registry-url: 'https://registry.npmjs.org' - - run: npm ci - - run: npm run deploy - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - run: npm ci + - run: npm run deploy + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index 8850da2..09a0e57 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -1,37 +1,37 @@ name: Unit/Integration Tests on: - pull_request: - types: - - opened - - synchronize - - reopened - - ready_for_review - push: - branches: - - main + pull_request: + types: + - opened + - synchronize + - reopened + - ready_for_review + push: + branches: + - main jobs: - build-and-test: - strategy: - matrix: - node-version: [18.x, 20.x, 22.x] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - submodules: true - - uses: actions/setup-node@v4 - with: - node-version: '${{ matrix.node-version }}' - - name: cache node modules - uses: actions/cache@v4 - with: - path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS - key: npm-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }} - restore-keys: | - npm-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }} - npm- - - run: npm ci - - run: npm test - env: - CI: true + build-and-test: + strategy: + matrix: + node-version: [18.x, 20.x, 22.x] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: true + - uses: actions/setup-node@v4 + with: + node-version: '${{ matrix.node-version }}' + - name: cache node modules + uses: actions/cache@v4 + with: + path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS + key: npm-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }} + restore-keys: | + npm-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }} + npm- + - run: npm ci + - run: npm test + env: + CI: true diff --git a/.prettierrc.cjs b/.prettierrc.cjs index 80a762e..497f3c3 100644 --- a/.prettierrc.cjs +++ b/.prettierrc.cjs @@ -5,5 +5,13 @@ module.exports = { tabWidth: 4, trailingComma: 'none', useTabs: false, - arrowParens: 'avoid' + arrowParens: 'avoid', + overrides: [ + { + files: ['*.yml', '*.yaml'], + options: { + tabWidth: 2 + } + } + ] };