Deploy Snap #14
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: Deploy Snap | |
on: | |
workflow_dispatch: | |
jobs: | |
deploy: | |
name: Deploy Snap | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install npm dependencies | |
run: yarn --immutable | |
- name: Production Deployment | |
run: | | |
VERSION=$(node -p "require('./packages/snap/package.json').version") | |
npm --prefix ./packages/snap version --new-version "${VERSION}" --no-git-tag-version --allow-same-version | |
yarn workspace @consensys/linea-voyager build | |
npm publish ./packages/snap --tag latest --access public > /dev/null 2>&1 | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |