Skip to content

Commit

Permalink
run test and release at once
Browse files Browse the repository at this point in the history
  • Loading branch information
sushichan044 committed Oct 21, 2024
1 parent 3326dde commit 22c39ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 27 deletions.
27 changes: 1 addition & 26 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,8 @@ concurrency:
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-24.04
timeout-minutes: 10
permissions:
contents: read

steps:
- name: Checkout Repo
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1

- run: corepack enable pnpm

- name: Setup Node.js 20.x
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version-file: "package.json"
cache: "pnpm"

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

- name: Test ESLint Config
run: pnpm run build && pnpm run test

release:
needs: test
name: Release
name: Test and Release
runs-on: ubuntu-24.04
timeout-minutes: 10
permissions:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"build:stylelint": "pnpm --filter @virtual-live-lab/stylelint-config build",
"test": "vitest",
"pkg-pr-new": "pkg-pr-new publish --compact --comment=update --pnpm",
"release": "pnpm run build && changeset publish"
"release": "pnpm run build && pnpm run test && changeset publish"
},
"packageManager": "[email protected]",
"devDependencies": {
Expand Down

0 comments on commit 22c39ce

Please sign in to comment.