Skip to content

Commit

Permalink
Merge pull request #19 from CodinGame/add-ci
Browse files Browse the repository at this point in the history
Add ci
  • Loading branch information
CGNonofr authored Mar 18, 2022
2 parents 112cd5b + 8c2b595 commit d6cd32f
Show file tree
Hide file tree
Showing 4 changed files with 177 additions and 4 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: 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: npm ci
- name: Build
run: npm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
126 changes: 124 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"name": "@codingame/monaco-editor-wrapper",
"version": "1.10.2",
"version": "0.0.0-semantic-release",
"private": false,
"description": "Enhanced Monaco editor with TextMate grammars and more",
"scripts": {
"build": "rollup --config rollup.config.ts --configPlugin typescript && npm run generate-types",
"prepublishOnly": "npm run build",
"generate-types": "tsc --project tsconfig.types.json",
"update-extensions": "ts-node update-extensions.ts"
},
Expand Down Expand Up @@ -47,6 +46,7 @@
"@typescript-eslint/eslint-plugin": "5.15.0",
"@typescript-eslint/parser": "5.15.0",
"babel-eslint": "10.1.0",
"conventional-changelog-conventionalcommits": "^4.6.3",
"cson-parser": "4.0.9",
"deep-equal": "2.0.5",
"eslint": "8.11.0",
Expand Down
24 changes: 24 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
branches: [
'main'
],
plugins: [
['@semantic-release/commit-analyzer', {
preset: 'conventionalcommits',
releaseRules: [
{ type: 'ci', release: 'patch' },
{ type: 'style', release: 'patch' },
{ type: 'refactor', release: 'patch' },
{ type: 'cleanup', release: 'patch' },
{ type: 'docs', release: 'patch' },
{ type: 'perfs', release: 'patch' },
{ type: 'test', release: 'patch' },
{ type: 'libs', release: 'patch' },
{ type: 'chore', release: 'patch' },
]
}],
'@semantic-release/release-notes-generator',
'@semantic-release/npm',
'@semantic-release/github'
]
}

0 comments on commit d6cd32f

Please sign in to comment.