Skip to content

Commit

Permalink
🐛 fix: Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Sep 8, 2023
1 parent 63a54cd commit 184e184
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 5 deletions.
33 changes: 29 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@ on:
push:
branches:
- main

jobs:
release:
name: Release
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7
version: 8

- name: Setup Node.js environment
uses: actions/setup-node@v3
Expand All @@ -23,10 +24,34 @@ jobs:
- name: Install deps
run: pnpm install

- name: CI
run: pnpm run ci

- name: Test
run: pnpm run test

release:
needs: test
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install deps
run: pnpm install

- name: release
run: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7
version: 8

- name: Setup Node.js environment
uses: actions/setup-node@v3
Expand All @@ -21,6 +21,9 @@ jobs:
- name: Install deps
run: pnpm install

- name: CI
run: pnpm run ci

- name: Test and coverage
run: pnpm run test:coverage

Expand Down

0 comments on commit 184e184

Please sign in to comment.