fix: don't include types on package #57
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
name: build | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x, 22.x] | |
steps: | |
- uses: actions/checkout@main | |
- uses: actions/cache@main | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
- run: | | |
npm ci | |
npm run lint | |
npm run lint:ts | |
TZ=utc npm run test:ci | |
TZ=Europe/London npm run test:ci | |
TZ=America/Chicago npm run test:ci | |
TZ=Asia/Tokyo npm run test:ci | |
test-coverage: | |
needs: test | |
name: test-coverage | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- uses: actions/setup-node@main | |
with: | |
node-version: 22 | |
- uses: actions/cache@main | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
- run: | | |
npm ci | |
- uses: paambaati/[email protected] | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
with: | |
coverageCommand: yarn coverage | |
debug: true | |
publish-to-npm: | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- uses: actions/setup-node@main | |
with: | |
node-version: 22 | |
registry-url: https://registry.npmjs.org/ | |
- run: | | |
npm ci | |
npm run build | |
- name: Semantic Release | |
uses: cycjimmy/semantic-release-action@main | |
with: | |
branch: main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} |