Skip to content

Commit

Permalink
feat: Snap deployment pipeline (#29)
Browse files Browse the repository at this point in the history
Co-authored-by: Mario Christopher <[email protected]>
  • Loading branch information
alainncls and mario-christopher authored Mar 22, 2024
1 parent 19e88b3 commit c14ce22
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/deploy-snap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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/lxp-snap build
npm publish ./packages/snap --tag latest --access public > /dev/null 2>&1
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit c14ce22

Please sign in to comment.