diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d838ca1..b1a7104 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,7 @@ on: branches: [main] jobs: - build: + build-and-publish: runs-on: ubuntu-latest steps: @@ -17,9 +17,15 @@ jobs: with: node-version: 20 cache: 'npm' + registry-url: 'https://registry.npmjs.org/' - name: Install dependencies run: npm ci - name: Run tests run: npm test + + - name: Publish to npm + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}