Skip to content

Commit

Permalink
fix: add automatic docker release
Browse files Browse the repository at this point in the history
  • Loading branch information
Th3S4mur41 committed May 3, 2023
1 parent 7eff4a0 commit e1e20d6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@ jobs:
contents: write
issues: write
pull-requests: write
packages: write
3 changes: 3 additions & 0 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ permissions:
contents: write
issues: write
pull-requests: write
packages: write

jobs:
release:
Expand Down Expand Up @@ -57,6 +58,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }} # Needed to push to GitHub
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # Needed to publish to NPM registry
DOCKER_USERNAME: ${{ github.actor }}
DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
HUSKY: 0 # disable pre-commit hooks
run: |
npm run release
Expand Down
10 changes: 9 additions & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@
"assets": ["CHANGELOG.md", "package.json", "package-lock.json"]
}
],
"@semantic-release/github"
"@semantic-release/github",
"@semantic-release-plus/docker",
{
"name": {
"registry": "ghcr.io",
"namespace": "th3s4mur41",
"repository": "hw2energyid"
}
}
]
}

0 comments on commit e1e20d6

Please sign in to comment.