diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 6a5ceb68..8a1480f4 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -49,10 +49,13 @@ jobs: run: | echo "NPM_PACKAGE=$(echo $REF_NAME | grep -oE '(clients/js|contracts|integrations/(ethers-v6|hardhat|wagmi-v2|viem-v2))')" >> $GITHUB_OUTPUT echo "NPM_TAG=$(echo $REF_NAME | grep -oP '(?<=\-)(rc|next|alpha|beta)' || echo 'latest')" >> $GITHUB_OUTPUT + - name: Set publishing config + run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}" + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Publish ${{ github.ref_name }} to NPM run: pnpm publish --access public --no-git-checks --tag $NPM_TAG env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_CONFIG_PROVENANCE: true NPM_TAG: ${{ steps.extract-tag.outputs.NPM_TAG }} working-directory: ${{ steps.extract-tag.outputs.NPM_PACKAGE }} diff --git a/clients/js/package.json b/clients/js/package.json index b9cdb9d2..83d05e61 100644 --- a/clients/js/package.json +++ b/clients/js/package.json @@ -2,7 +2,7 @@ "type": "module", "name": "@oasisprotocol/sapphire-paratime", "license": "Apache-2.0", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "description": "The Sapphire ParaTime Web3 integration library.", "homepage": "https://github.com/oasisprotocol/sapphire-paratime/tree/main/clients/js", "repository": {