Skip to content

Commit

Permalink
feat!: improve interface of installing a service (#1)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `nodeArgs`, `nodePath`, `programArgs` and `programPath` no longer supported
  • Loading branch information
derevnjuk authored Jan 8, 2021
1 parent 2bbd3c6 commit cd225b0
Show file tree
Hide file tree
Showing 10 changed files with 7,286 additions and 447 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Automated deploy

on:
push:
tags:
- 'v*'
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.GPR_TOKEN }}

- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: 'https://registry.npmjs.org'

- run: echo "VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV

- run: npm ci -q
- run: npm version --no-git-tag-version "$VERSION"

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: 'https://npm.pkg.github.com'
scope: '@NeuraLegion'

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GPR_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Semantic release

on:
push:
branches:
- master

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GPR_TOKEN }}
- uses: actions/setup-node@v1
with:
node-version: 12

- run: npm ci -q
- run: npm run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GPR_TOKEN }}
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
syntax: glob
.idea
build
example/*.log
node_modules/
package-lock.json
example/*.log
45 changes: 45 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"releaseRules": [
{ "type": "docs", "scope": "readme", "release": "patch" }
],
"parserOpts": {
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"]
}
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "angular",
"parserOpts": {
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"]
},
"writerOpts": {
"commitsSort": ["subject", "scope"]
}
}
],
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
[
"@semantic-release/github",
{
"labels": false,
"releasedLabels": false,
"failTitle": false,
"failComment": false,
"successComment": false
}
]
],
"branch": "master",
"ci": true
}
Loading

0 comments on commit cd225b0

Please sign in to comment.