Skip to content

Commit

Permalink
Merge pull request #368 from oasisprotocol/CedarMist/pnpm-publish-npm…
Browse files Browse the repository at this point in the history
…-token-auth-fix

packaging: fix for PNPM publish auth token
  • Loading branch information
CedarMist authored Aug 28, 2024
2 parents c1f8391 + db42109 commit 77507b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion clients/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 77507b2

Please sign in to comment.