Skip to content

Commit 40642d8

Browse files
authored
Merge pull request #167 from MikeMcC399/reconfigure/semantic-release
chore(deps): reconfigure semantic-release
2 parents f6fcd94 + 1505476 commit 40642d8

File tree

3 files changed

+12891
-16937
lines changed

3 files changed

+12891
-16937
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,12 @@ jobs:
1515
node-version: 22
1616
- run: npm ci
1717
- run: npm test
18-
# - if: github.ref == 'refs/heads/master'
19-
# run: npm run semantic-release
18+
- name: Release to npm registry
19+
# only release from the master branch in parent repository, not in a fork
20+
if: (github.ref == 'refs/heads/master') &&
21+
(github.repository == 'cypress-io/commit-info')
22+
# TODO: remove --dry-run after testing and when a real release is needed
23+
run: npx semantic-release --dry-run
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)