Skip to content

Commit

Permalink
Merge pull request #363 from oasisprotocol/CedarMist/package-release-…
Browse files Browse the repository at this point in the history
…tags

packaging: use PNPM for publishing, with correct tags
  • Loading branch information
CedarMist authored Aug 27, 2024
2 parents cf0cdd5 + 3399339 commit 8a1f01c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ jobs:
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
REF_NAME: ${{ github.ref_name }}
run: |
echo "NPM_PACKAGE=$(echo $REF_NAME | grep -oE '(clients/js|contracts|integrations/(hardhat|wagmi-v2|viem-v2))')" >> $GITHUB_OUTPUT
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: Publish ${{ github.ref_name }} to NPM
uses: JS-DevTools/npm-publish@v3
with:
# Build runs as a prepublish script
ignore-scripts: false
token: ${{ secrets.NPM_TOKEN }}
package: ${{ steps.extract-tag.outputs.NPM_PACKAGE }}
access: public
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 }}

0 comments on commit 8a1f01c

Please sign in to comment.