diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 757ef63..d212a6c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,8 +31,3 @@ jobs: - name: Run Tests run: npm run tests - - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1afe286..467c021 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,8 +19,18 @@ jobs: uses: actions/setup-node@v3 with: node-version: 'lts/*' + - name: Install dependencies run: npm ci + + - name: Run Tests + run: npm run tests + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + - name: Release env: GH_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/package.json b/package.json index b221c45..bbfbc62 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ts-type-detector", - "version": "2.6.0", + "version": "2.7.0", "description": "Takes any JavaScript data type or object as an input and returns a string describing the type of the input.", "scripts": { "build": "tsup ./src && npx typedoc src/index.ts",