diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 738ea47..7582636 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,7 @@ on: push: # run only against tags tags: - - '*' + - "*" permissions: contents: write @@ -33,3 +33,13 @@ jobs: args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - uses: actions/setup-node@v3 + # This sets up the .npmrc file for publishing to npm + with: + node-version: "18.x" + registry-url: "https://registry.npmjs.org" + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}