Skip to content

Commit

Permalink
fix: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Apr 9, 2024
1 parent eb4d100 commit 948c972
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 12 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,26 @@ jobs:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: actions/checkout@v4
- name: Checkout codes
uses: actions/checkout@v4

- name: Prepare repository
run: git fetch --unshallow --tags

- uses: pnpm/action-setup@v3
- name: Enable corepack
run: corepack enable

- name: Setup node
uses: actions/setup-node@v4
with:
version: 8
run_install: true
node-version: 18
cache: 'pnpm'

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

- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
pnpm run release
run: pnpm run release
18 changes: 12 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,20 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout codes
uses: actions/checkout@v4

- name: Enable corepack
run: corepack enable

- uses: pnpm/action-setup@v3
- name: Setup node
uses: actions/setup-node@v4
with:
version: 8
run_install: true
node-version: 18
cache: 'pnpm'

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

- name: Run tests
run: |
pnpm run test:ci
run: pnpm run test:ci

0 comments on commit 948c972

Please sign in to comment.