Skip to content

Commit

Permalink
Merge pull request #3 from b2broker/deps
Browse files Browse the repository at this point in the history
Dependencies
  • Loading branch information
vansergen authored Apr 20, 2021
2 parents 7540265 + 618cdfa commit 9b5c86f
Show file tree
Hide file tree
Showing 6 changed files with 3,136 additions and 7,971 deletions.
54 changes: 37 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@ name: CI
on: push

jobs:
ci:
test:
runs-on: ubuntu-latest

container: node:14-buster
strategy:
matrix:
node: [14, 15]

container: node:${{ matrix.node }}-alpine

steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
- uses: actions/checkout@main

- name: Install dependencies
run: npm ci
Expand All @@ -25,27 +27,45 @@ jobs:
- name: commitlint
run: npm run commitlint:all

- name: Pack
run: npm pack --dry-run
- name: Publish
run: npm publish --dry-run

release:
needs: [test]

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@main
with:
fetch-depth: 0

- uses: actions/setup-node@main
with:
node-version: 16
check-latest: true

- name: Install dependencies
run: npm ci

- name: Decrypt PGP key
run: ./.github/scripts/decrypt.sh
env:
PRIVATE_KEY_PASSPHRASE: ${{ secrets.PRIVATE_KEY_PASSPHRASE }}

- name: Setup git
run: ./.github/scripts/git.sh
env:
PGP_KEY_ID: ${{ secrets.PGP_KEY_ID }}

- name: Release
run: npm run release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Cleanup
run: ./.github/scripts/cleanup.sh

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }}
NPM_CONFIG_UNSAFE_PERM: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
PGP_KEY_ID: ${{ secrets.PGP_KEY_ID }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PRIVATE_KEY_PASSPHRASE: ${{ secrets.PRIVATE_KEY_PASSPHRASE }}
2 changes: 1 addition & 1 deletion .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
_
_
29 changes: 12 additions & 17 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,19 @@
{ "type": "ci", "section": "Continuous Integration", "hidden": true }
]
},
"releaseRules": [
{ "breaking": true, "release": "major" },
{ "type": "feat", "release": "minor" },
{ "type": "fix", "release": "patch" },
{ "type": "perf", "release": "patch" },
{ "type": "build", "release": "patch" },
{ "type": "initial", "release": "minor" },
{ "type": "dependencies", "release": "patch" },
{ "type": "peerDependencies", "release": "patch" },
{ "type": "metadata", "release": "patch" }
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"releaseRules": [
{ "breaking": true, "release": "major" },
{ "type": "feat", "release": "minor" },
{ "type": "fix", "release": "patch" },
{ "type": "perf", "release": "patch" },
{ "type": "build", "release": "patch" },
{ "type": "docs", "scope": "readme", "release": "patch" },
{ "type": "initial", "release": "minor" },
{ "type": "dependencies", "release": "patch" },
{ "type": "peerDependencies", "release": "patch" },
{ "type": "metadata", "release": "patch" }
]
}
],
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
["@semantic-release/changelog", { "changelogTitle": "# Changelog" }],
"@semantic-release/npm",
Expand Down
7 changes: 3 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

### [1.0.1](https://github.com/b2broker/typescript-eslint-config/compare/v1.0.0...v1.0.1) (2021-03-03)


### Dependencies

* upgrade `eslint-config-b2broker` to `v1.0.3` ([1c4a757](https://github.com/b2broker/typescript-eslint-config/commit/1c4a757afac1dfd0a064c59bef0c5c22ef901d51))
* upgrade `typescript-eslint` to `v4.16.1` ([334ba55](https://github.com/b2broker/typescript-eslint-config/commit/334ba559c54d108234066455cb8500ad4ed5c7b7))
* upgrade `typescript` to `v4.2.2` ([7bba3f6](https://github.com/b2broker/typescript-eslint-config/commit/7bba3f6fe059de5f6ef8a99c69332bbe21baafaa))
- upgrade `eslint-config-b2broker` to `v1.0.3` ([1c4a757](https://github.com/b2broker/typescript-eslint-config/commit/1c4a757afac1dfd0a064c59bef0c5c22ef901d51))
- upgrade `typescript-eslint` to `v4.16.1` ([334ba55](https://github.com/b2broker/typescript-eslint-config/commit/334ba559c54d108234066455cb8500ad4ed5c7b7))
- upgrade `typescript` to `v4.2.2` ([7bba3f6](https://github.com/b2broker/typescript-eslint-config/commit/7bba3f6fe059de5f6ef8a99c69332bbe21baafaa))

## 1.0.0 (2020-11-03)

Expand Down
Loading

0 comments on commit 9b5c86f

Please sign in to comment.