Skip to content

Commit

Permalink
build: optimize github action
Browse files Browse the repository at this point in the history
  • Loading branch information
zanminkian committed Jun 7, 2024
1 parent b803749 commit 4c0ea8e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup Node.js Env
- name: Setup Node.js Env and Test
uses: actions/setup-node@v3
with:
node-version: lts/*

- name: Install Dependencies
run: corepack enable && pnpm i
- run: corepack enable
- run: pnpm i
- run: pnpm test

- name: Create Release Pull Request or Publish
# https://github.com/changesets/action
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
"postinstall": "git-validator install",
"release": "pnpm build && changeset publish",
"style": "git-validator",
"style:update": "git-validator -u"
"style:update": "git-validator -u",
"test": "pnpm style"
},
"devDependencies": {
"@changesets/cli": "2.27.1",
"@types/node": "20.12.5",
"git-validator": "0.15.11",
"typed-jest": "workspace:^",
"typed-jest": "workspace:*",
"typescript": "5.4.4"
},
"packageManager": "pnpm@8.15.4",
Expand Down

0 comments on commit 4c0ea8e

Please sign in to comment.