Skip to content

Commit

Permalink
fix: fix ci for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Bugs5382 committed Nov 17, 2023
1 parent 4081c11 commit 5f6982a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: GitHub CI
on:
push:
branches: [ main ]
tags:
- '*'
pull_request:

jobs:
Expand All @@ -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'
Expand All @@ -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 }}

0 comments on commit 5f6982a

Please sign in to comment.