Skip to content

Commit

Permalink
fix(publish.yml): added main branch for auto release
Browse files Browse the repository at this point in the history
  • Loading branch information
opensrc0 committed May 18, 2024
1 parent d57b124 commit 4a4386c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Node.js CI

on:
push:
branches: [ "master" ]
branches: [ "master", main ]
pull_request:
branches: '*'

Expand All @@ -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 }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4a4386c

Please sign in to comment.