feat: sf 549 update all method to support upgraded address (#188) #125
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Dev to NPM | |
on: | |
push: | |
branches: | |
- main | |
- 'releases/**' | |
paths: | |
- "packages/**" | |
permissions: | |
contents: write | |
# defaults: | |
# run: | |
# working-directory: ./packages/starknet-snap | |
jobs: | |
publish-dev-to-npm: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
yarn install --no-immutable | |
yarn workspace @consensys/starknet-snap setup | |
VERSION=$(node -p "require('./packages/starknet-snap/package.json').version") | |
HASH=$(git rev-parse --short HEAD) | |
DATE=$(date +%Y%m%d) | |
npm --prefix ./packages/starknet-snap version --new-version ${VERSION}-dev-${HASH}-${DATE} --no-git-tag-version | |
yarn workspace @consensys/starknet-snap build | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
registry-url: 'https://registry.npmjs.org' | |
- run: npm publish ./packages/starknet-snap --tag dev --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |