Skip to content

Commit

Permalink
Publish to github package registry.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephrdev committed Oct 19, 2023
1 parent 06ad716 commit c12455a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: push
jobs:
build:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -14,3 +15,11 @@ jobs:
run: |
npm ci
npm test
- name: Publish to GitHub 🚀
if: startsWith(github.ref, 'refs/tags/')
run: |
npm set //npm.pkg.github.com/:_authToken $GITHUB_TOKEN
npm publish --access public --@moccu:registry=https://npm.pkg.github.com
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@moccu/eslint-config",
"description": "The eslint config we use at moccu",
"version": "0.3.0",
"version": "0.3.1",
"author": "Moccu GmbH & Co. KG",
"license": "MIT",
"repository": "moccu/eslint-config-moccu",
Expand Down

0 comments on commit c12455a

Please sign in to comment.