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 }}