Skip to content

Commit

Permalink
feat(semantic-deploys): add semantic versioning and deploy-related fu…
Browse files Browse the repository at this point in the history
…nctionality.
  • Loading branch information
Adam Murray committed Mar 22, 2022
1 parent 6bfb12d commit ef5c47a
Show file tree
Hide file tree
Showing 6 changed files with 909 additions and 192 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
ame: Release

on:
push:
branches: [main]

jobs:
release:
name: Release
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Install dependencies
run: npx ci
- name: Install semantic-release extra plugins
run: npm install --save-dev @semantic-release/changelog @semantic-release/git
# - name: Lint
# run: npm run lint-fix
# - name: Test
# run: npm run test:unit --if-present
- name: Build
run: npm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
recordings/*
yarn-error.log
.DS_Store
23 changes: 23 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = {
branches: ['main'],
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
[
'@semantic-release/changelog',
{
changelogFile: 'CHANGELOG.md',
},
],
'@semantic-release/npm',
'@semantic-release/github',
[
'@semantic-release/git',
{
assets: ['CHANGELOG.md', 'dist/**'],
message:
'chore(release): set `package.json` to ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
},
],
],
};
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @cypress/chrome-recorder

[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)

This repo provides tools to export Cypress Tests from Google Chrome DevTools' Recordings

## Installation
Expand Down Expand Up @@ -31,3 +33,9 @@ $ npx @cypress/chrome-recorder <relative path to target test file or directory>
| -f, --force | Bypass Git safety checks and force exporter to run |
| -d, --dry | Dry run (no changes are made to files) |
| -p, --print | Print transformed files to stdout, useful for development |

### License

[![license](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/cypress-io/cypress-chrome-recorder/blob/master/LICENSE)

This project is licensed under the terms of the [MIT license](/LICENSE).
26 changes: 20 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cypress/chrome-recorder",
"version": "0.0.1",
"version": "0.0.0-semantic-release",
"description": "Generate Cypress Tests from Chrome DevTools Recordings",
"bin": "bin/cypress-chrome-recorder.js",
"main": "dist/main.js",
Expand All @@ -11,7 +11,8 @@
"scripts": {
"build": "tsc",
"build:dev": "tsc -w",
"test": ""
"test": "",
"cm": "cz"
},
"repository": {
"type": "git",
Expand All @@ -23,12 +24,12 @@
"automation",
"devtools"
],
"author": "",
"author": "Cypress DX",
"license": "ISC",
"bugs": {
"url": "https://github.com/cypress-io//cypress-chrome-recorder/issues"
"url": "https://github.com/cypress-io/cypress-chrome-recorder/issues"
},
"homepage": "https://github.com/cypress-io//cypress-chrome-recorder#readme",
"homepage": "https://github.com/cypress-io/cypress-chrome-recorder#readme",
"dependencies": {
"@puppeteer/replay": "^0.0.4",
"chalk": "^4.1.2",
Expand All @@ -41,7 +42,20 @@
"devDependencies": {
"@types/inquirer": "^8.2.0",
"@types/node": "^17.0.21",
"commitizen": "^4.2.4",
"cz-conventional-changelog": "^3.3.0",
"husky": "^7.0.4",
"typescript": "^4.6.2"
},
"type": "module"
"type": "module",
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"husky": {
"hooks": {
"prepare-commit-msg": "exec < /dev/tty && npx cz --hook || true"
}
}
}
Loading

0 comments on commit ef5c47a

Please sign in to comment.