fix: cleanup release

This commit is contained in:
Niccolo Borgioli 2023-03-06 10:06:15 +01:00
parent 4a54c3ec8a
commit c2d255a7fb
No known key found for this signature in database
GPG Key ID: D93C615F75EE4F0B
2 changed files with 4 additions and 5 deletions

View File

@ -1,8 +1,10 @@
name: release-please
on: on:
push: push:
branches: branches:
- main - main
name: release-please
jobs: jobs:
release-please: release-please:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -17,9 +19,6 @@ jobs:
if: ${{ steps.release.outputs.release_created }} if: ${{ steps.release.outputs.release_created }}
- uses: ./.github/actions/build - uses: ./.github/actions/build
if: ${{ steps.release.outputs.release_created }} if: ${{ steps.release.outputs.release_created }}
- run: pnpm test
if: ${{ steps.release.outputs.release_created }}
- run: pnpm publish - run: pnpm publish
if: ${{ steps.release.outputs.release_created }} if: ${{ steps.release.outputs.release_created }}
env: env:

View File

@ -9,7 +9,7 @@
], ],
"scripts": { "scripts": {
"clean": "rm -rf ./dist", "clean": "rm -rf ./dist",
"prepublishOnly": "run-s clean build test", "prepublishOnly": "run-s clean compile test",
"build": "run-s compile demo", "build": "run-s compile demo",
"compile": "tsc", "compile": "tsc",
"compile:watch": "tsc -w", "compile:watch": "tsc -w",