From 5f6982a5676341063260e9243b4c6c4ea0810b56 Mon Sep 17 00:00:00 2001 From: Bugs5382 Date: Thu, 16 Nov 2023 19:51:09 -0500 Subject: [PATCH] fix: fix ci for release --- .github/workflows/ci.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 48d8eda..964c449 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -2,8 +2,6 @@ name: GitHub CI on: push: branches: [ main ] - tags: - - '*' pull_request: jobs: @@ -27,6 +25,10 @@ jobs: run: npm install --ignore-scripts - name: Run Unit Tests run: npm run test:ci + - name: Release Drafter + uses: release-drafter/release-drafter@v5.9.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} Release: # Only release on push to main if: github.event_name == 'push' && github.ref == 'refs/heads/main' @@ -40,8 +42,8 @@ jobs: with: node-version: 'lts/*' - run: npm install - - name: semantic-release + - name: Semantic Release run: npm run semantic-release env: - GITLAB_TOKEN: $CI_JOB_TOKEN + GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file