From 9b8fedeb8631052c8991ba2e7f2943002fdd6418 Mon Sep 17 00:00:00 2001 From: Lawrence Ephrim Date: Mon, 26 Feb 2024 11:28:47 +0000 Subject: [PATCH] fix: github action bug --- .github/workflows/npm-deploy.yaml | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/npm-deploy.yaml b/.github/workflows/npm-deploy.yaml index 7fa3797..2547ae4 100644 --- a/.github/workflows/npm-deploy.yaml +++ b/.github/workflows/npm-deploy.yaml @@ -38,21 +38,25 @@ jobs: git merge main git push - # - name: Create Release - # uses: actions/create-release@v1 - # env: - # GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - # with: - # tag_name: ${{ github.ref }} - # release_name: Release ${{ github.ref }} - # body_path: CHANGELOG.md - # draft: false - # prerelease: false + - name: Build package + run: | + npm ci --legacy-peer-deps + npm run bundle + + - name: Create release + uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}" + automatic_release_tag: "latest" + prerelease: true + title: "Production Build" + files: | + LICENSE.txt + CHANGELOG.md + dist/* - name: Publish package to npm env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: | - npm ci --legacy-peer-deps - npm run bundle npm publish