From 04f52a1e5bf550d7f289a08a288e48c022d06270 Mon Sep 17 00:00:00 2001 From: Alex Torres Date: Tue, 19 Dec 2023 18:23:42 -0500 Subject: [PATCH] Update build-release.yml --- .github/workflows/build-release.yml | 40 +---------------------------- 1 file changed, 1 insertion(+), 39 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index c95ae0f..1b38f26 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -1,4 +1,4 @@ -name: Build & Release +name: Build on: push: @@ -46,41 +46,3 @@ jobs: with: name: build-artifact path: dist - - release: - name: 🚀 Release - if: github.event_name == 'push' && github.ref == 'refs/heads/main' - needs: build - runs-on: ubuntu-22.04 - steps: - - name: Checkout repository - uses: actions/checkout@v3 - with: - fetch-depth: 0 - persist-credentials: false - - name: Download artifact - uses: actions/download-artifact@v3 - with: - name: build-artifact - path: dist - - name: Install Node.js - uses: actions/setup-node@v3 - with: - node-version: "lts/*" - - name: Set correct path - run: sed -i "s/\/dist//g" package.json - - name: Copy files - run: | - cp README.md dist - cp LICENSE dist - cp package.json dist - cp .npmignore dist - - name: Semantic Release - uses: cycjimmy/semantic-release-action@v3 - with: - extra_plugins: | - @semantic-release/changelog - @semantic-release/git - env: - GITHUB_TOKEN: ${{ secrets.PAT }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file