diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e90de7c..b4655a7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,3 +21,11 @@ jobs: - name: Run tests ๐Ÿงช run: npm t + + - 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}}