Skip to content

Commit

Permalink
chore: Add CI with GitHub Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jemc committed May 3, 2024
1 parent 4d0da8e commit e5bf1c8
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: ci

on:
workflow_dispatch: # allow manual trigger
pull_request: # on pull request changes
push:
branches: [main] # on commits to the main branch

jobs:
ci:
runs-on: ubuntu-latest
permissions:
contents: write # to publish releases
issues: write # to comment on released issues
pull-requests: write # to comment on released PRs
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with: { node-version: 20.x }
- run: npm install -g pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm run -r test
- run: pnpm run -r build
# - run: pnpm run -r release
# env:
# GITHUB_TOKEN: ${{ github.token }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
],
"scripts": {
"test": "jest",
"prepack": "tsc"
"build": "tsc",
"prepack": "pnpm run build"
},
"prettier": {
"semi": false
Expand Down

0 comments on commit e5bf1c8

Please sign in to comment.