Skip to content

Commit

Permalink
fix: pushes to npmjs
Browse files Browse the repository at this point in the history
  • Loading branch information
emi190396 committed Oct 22, 2020
1 parent acec963 commit 928dc8a
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- match:
dependency_name: gluecode-it\/.+
dependency_type: all
update_type: "security:minor"
update_type: "semver:minor"
- match:
dependency_type: developement
update_type: "semver:minor"
13 changes: 0 additions & 13 deletions .github/workflows/dependabot-auto-merge.yml

This file was deleted.

13 changes: 5 additions & 8 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,11 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12
- name: npmrc
run: >-
echo "//npm.pkg.github.com/:_authToken=${{ secrets.NPM_TOKEN }}" >>
.npmrc
- name: Install dependencies
run: npm install
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
NPM_TOKEN: '${{ secrets.NPM_TOKEN }}'
- name: Run Jest
run: npm test
run: npm test
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
target: minor
github-token: ${{ secrets.GH_PAT }}
9 changes: 1 addition & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,12 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12
- name: npmrc
run: >-
echo "//npm.pkg.github.com/:_authToken=${{ secrets.NPM_TOKEN }}" >>
.npmrc
- name: Install dependencies
run: npm install
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
NPM_TOKEN: '${{ secrets.NPM_TOKEN }}'
- name: Run Jest
run: npm test
- name: 'Release with semantic release'
uses: cycjimmy/semantic-release-action@v2
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
NPM_TOKEN: '${{ secrets.NPM_TOKEN }}'
NPM_TOKEN: '${{ secrets.NPM_TOKEN_NPMJS }}'
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

17 changes: 17 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "angular",
"releaseRules": [{ "scope": "deps", "release": "patch" }],
"parserOpts": {
"noteKeywords": ["BREAKING CHANGE"]
}
}
],
"@semantic-release/release-notes-generator",
"@semantic-release/github",
"@semantic-release/npm"
]
}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,8 @@
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
},
"publishConfig": {
"access": "public"
}
}

0 comments on commit 928dc8a

Please sign in to comment.