From e7e49e04d374fb09628dbfb8dd1eb800d4e063f0 Mon Sep 17 00:00:00 2001 From: Tommaso Bailetti Date: Mon, 23 Oct 2023 10:06:05 +0200 Subject: [PATCH] ci: added release-please --- .github/workflows/linters.yml | 4 ++-- .github/workflows/release-please.yml | 11 ++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 21a47f4..7d04cbb 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -7,7 +7,7 @@ on: jobs: prettier: name: Prettier - runs-on: ubuntu-latestu + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: reviewdog/action-setup@v1 @@ -18,7 +18,7 @@ jobs: eslint: name: Eslint - runs-on: ubuntu-latestu + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: reviewdog/action-setup@v1 diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 9ddf83c..0d2a8a2 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -11,7 +11,16 @@ jobs: release-please: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 + - run: | + ./build.sh - uses: google-github-actions/release-please-action@v3 + id: release with: release-type: node - package-name: ns8-user-manager \ No newline at end of file + package-name: ns8-user-manager + - name: Attach Release + if: ${{ steps.release.outputs.release_created }} + run: + tar cvf ns8-user-manager-${{ steps.release.outputs.tag_name }}.tar.gz dist + gh release upload ${{ steps.release.outputs.tag_name }} ns8-user-manager-${{ steps.release.outputs.tag_name }}.tar.gz dist