diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index afb08e6..60e181e 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -17,6 +17,11 @@ jobs: steps: # This checks out the repository to be accessible for the workflow - https://github.com/actions/checkout - uses: actions/checkout@v4 + # This is used to configure authentification for npm - https://github.com/actions/setup-node + - uses: actions/setup-node@v4 + with: + node-version: 18 + registry-url: https://npm.pkg.github.com/ # This is the command that will publish the package on the registry specified in package.json or .npmrc # GITHUB_TOKEN allows us to authenticate without any personal access token - run: npm publish diff --git a/.npmrc b/.npmrc index 9fbf6c5..f7bb0fe 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1 @@ -@FishingCactus:registry=https://npm.pkg.github.com +registry=https://npm.pkg.github.com/@FishingCactus