diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 9f5b245..8bae833 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -18,6 +18,13 @@ jobs: node-version: 20 registry-url: 'https://git.ksv741.keenetic.pro/api/packages/teacinema/npm/' + - name: Configure npm auth + run: | + echo "//git.ksv741.keenetic.pro/api/packages/teacinema/npm/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc + echo "@teacinema:registry=https://git.ksv741.keenetic.pro/api/packages/teacinema/npm" >> ~/.npmrc + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: 'Install dependencies' run: echo "*** npm install ***" && npm install