Skip to content

chore(deps): reconfigure semantic-release #49

chore(deps): reconfigure semantic-release

chore(deps): reconfigure semantic-release #49

Workflow file for this run

name: Test and Release (if master)
on:
push:
pull_request:
branches:
- 'master'
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm ci
- run: npm test
- name: Release to npm registry
# only release from the master branch in parent repository, not in a fork
if: (github.ref == 'refs/heads/master') &&
(github.repository == 'cypress-io/commit-info')
# TODO: remove --dry-run after testing and when a real release is needed
run: npx semantic-release --dry-run
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}