Skip to content

Commit

Permalink
Add GitHub Actions workflows for pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
jahands committed Mar 4, 2024
1 parent 2d370cb commit 665141c
Show file tree
Hide file tree
Showing 5 changed files with 159 additions and 4 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/pullrequests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Pull Request

on: pull_request

jobs:
check:
timeout-minutes: 5
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-checks
cancel-in-progress: true
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- uses: pnpm/action-setup@v3
with:
version: 8
run_install: |
- args: [--frozen-lockfile --child-concurrency=10]
- run: 'pnpm check'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ build/Release
# Dependency directories
node_modules/
jspm_packages/
.pnpm-store

# TypeScript v1 declaration files
typings/
Expand Down
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ dist
node_modules
.changeset
package-lock.json
pnpm-lock.yaml
pnpm-lock.yaml
.pnpm-store
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@
"build-esm": "tsc",
"build-cjs": "tsc -p tsconfig-cjs.json",
"fix-dist": "echo '{\"type\": \"module\"}' > dist/esm/package.json && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json",
"build": "pnpm clean && pnpm format && pnpm build-esm && pnpm build-cjs && pnpm fix-dist",
"preversion": "pnpm build",
"prepublishOnly": "pnpm build",
"build": "run-s -l clean build-esm build-cjs fix-dist",
"preversion": "run-s -l check:* build",
"prepublishOnly": "run-s -l check:* build",
"check": "run-s -l check:*",
"check:format": "prettier . --check --ignore-unknown",
"check:type:esm": "tsc",
"check:type:cjs": "tsc -p tsconfig-cjs.json",
"watch": "tsc --watch",
"prepare": "husky install"
},
Expand All @@ -46,6 +50,7 @@
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@cloudflare/workers-types": "^4.20231016.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.3",
"rimraf": "^4.4.1",
"typescript": "^5.2.2"
Expand Down
123 changes: 123 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 665141c

Please sign in to comment.