Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
push:
branches:
- master
- 'feature/*'
pull_request:
branches: [master]

Expand Down Expand Up @@ -72,8 +71,5 @@ jobs:
cache: 'npm'
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Run semantic-release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish
run: npm publish
33 changes: 18 additions & 15 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,32 @@
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
["@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}],
["@semantic-release/github",
[
"@semantic-release/changelog",
{
"assets": [
{ "path": "src/relative.time.parser.js", "label": "JS distribution" }
]
}],
"changelogFile": "CHANGELOG.md"
}
],
[
"@semantic-release/npm",
"@semantic-release/github",
{
"npmPublish": true
"assets": [
{
"path": "src/relative.time.parser.js",
"label": "JS distribution"
}
]
}
],
[
"@semantic-release/git",
{
"assets": ["package.json", "CHANGELOG.md"],
"assets": [
"package.json",
"CHANGELOG.md"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"@semantic-release/github"
]
]
}
}
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
"version": "1.1.1",
"description": "A moment.js plugin to convert relative time string into a moment.js object",
"main": "./src/relative.time.parser.js",
"private": false,
"publishConfig": {
"access": "public",
"provenance": true
},
"scripts": {
"test": "grunt test",
"coverage": "nyc --reporter lcov --reporter text npm test",
Expand Down