Skip to content

Commit

Permalink
feat: initial semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakeii committed Feb 2, 2021
1 parent bccc5da commit e8bb0ae
Show file tree
Hide file tree
Showing 5 changed files with 3,894 additions and 52 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/cypress.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Node CI
name: CI

on: [push]
on:
pull_request:
branches: [master]

jobs:
build:
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release
on:
push:
branches: [master]

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Cache node modules
uses: actions/cache@v2
with:
path: |
~/.cache/yarn
**/node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}

- name: Setup Node.js
uses: actions/setup-node@v1

- name: Install dependencies
run: yarn --frozen-lockfile

- name: Test
uses: cypress-io/[email protected]

- name: Release
uses: cycjimmy/semantic-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
test
vendor
cypress
20 changes: 19 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,25 @@
"jquery": "~3.4.1",
"toposort-class": "^1.0.1"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"tag": "latest"
},
"devDependencies": {
"@babel/core": "^7.6.4",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/preset-env": "^7.6.3",
"@commitlint/config-conventional": "^11.0.0",
"babel-loader": "^8.0.6",
"babel-plugin-add-module-exports": "^1.0.2",
"commitlint": "^11.0.0",
"copy-webpack-plugin": "^5.0.4",
"cypress": "^3.6.0",
"exports-loader": "^0.7.0",
"husky": "^4.3.8",
"imports-loader": "^0.8.0",
"semantic-release": "^17.3.7",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.10",
"webpack-dev-server": "^3.9.0",
Expand All @@ -32,6 +40,16 @@
"test": "cypress run",
"cypress:open": "cypress open"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/tunapanda/h5p-standalone.git"
Expand All @@ -45,4 +63,4 @@
"url": "https://github.com/tunapanda/h5p-standalone/issues"
},
"homepage": "https://github.com/tunapanda/h5p-standalone#readme"
}
}
Loading

0 comments on commit e8bb0ae

Please sign in to comment.