chore: bump version to 1.2.5 and update README links for unpkg and js… #14
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: Typescript Pull Request Check | |
permissions: | |
contents: read | |
on: | |
push: | |
branches: [main] | |
paths: | |
- "packages/typescript/**" | |
pull_request: | |
branches: [main] | |
paths: | |
- "packages/typescript/**" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
checking-pr: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
cache: "yarn" | |
cache-dependency-path: ./packages/typescript/yarn.lock | |
- name: Install dependencies | |
working-directory: ./packages/typescript | |
run: yarn install | |
- name: Run Prettier | |
working-directory: ./packages/typescript | |
run: yarn format | |
- name: Run lint | |
working-directory: ./packages/typescript | |
run: yarn lint | |
- name: Run test | |
working-directory: ./packages/typescript | |
run: yarn test | |
- name: Run build | |
working-directory: ./packages/typescript | |
run: yarn build | |
- name: Check if dist and types are created | |
run: | | |
if [ ! -d "./packages/typescript/dist" ]; then | |
echo "dist directory is not created" | |
exit 1 | |
fi | |
if [ ! -d "./packages/typescript/types" ]; then | |
echo "types directory is not created" | |
exit 1 | |
fi | |
echo "dist and types directory are created" |