Skip to content

Commit

Permalink
Merge pull request #16 from sameoldlab/better-builds
Browse files Browse the repository at this point in the history
Edit Github actions
  • Loading branch information
sameoldlab authored May 7, 2024
2 parents 6cc4695 + 06db152 commit 7ccaa85
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Check commit
on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run checks
run: pnpm check

- name: Build
run: pnpm build
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run checks
run: pnpm check && pnpm build

- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
publish: pnpm ci:publish
publish: pnpm publish -r --dry-run
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"type": "module",
"types": "./types.d.ts",
"files": [
"dist"
"src"
],
"exports": {
"types": "./dist/types.d.ts"
"types": "./src/types.d.ts"
},
"scripts": {
"dev": "tsc -w",
Expand Down

0 comments on commit 7ccaa85

Please sign in to comment.