From 4a4386c1332518197994e11c474fd6bca32c61c4 Mon Sep 17 00:00:00 2001 From: Himanshu Gupta Date: Sat, 18 May 2024 22:02:04 +0530 Subject: [PATCH] fix(publish.yml): added main branch for auto release --- .github/workflows/publish.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 277f5cc..221d412 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,7 +5,7 @@ name: Node.js CI on: push: - branches: [ "master" ] + branches: [ "master", main ] pull_request: branches: '*' @@ -17,17 +17,17 @@ jobs: matrix: node-version: [21.6.1] os: [ubuntu-latest] - + steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - + - run: npm ci - run: npm run prod - run: npm run semantic-release - env: + env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}