Skip to content

Commit

Permalink
Merge pull request #84 from leapwallet/add/publish-provider-workflow
Browse files Browse the repository at this point in the history
add seperate workflow to publish provider
  • Loading branch information
baryon2 authored Mar 14, 2024
2 parents 448fc7e + 86d3ce1 commit 96baa5d
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/publish-provider.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: 📦 Publish Provider

on:
push:
branches: [release/snap-provider]
jobs:
publish-npm-registry:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- name: 📥 Install Dependencies
run: yarn
env:
GH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
- name: 🏗️ Build Library and Publish
run: yarn build:provider && yarn publish:provider
env:
GH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

publish-gitHub-registry:
runs-on: ubuntu-latest
env:
NEW_VERSION: ${{ github.ref_name }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: ⬇️ Checkout Repo
uses: actions/checkout@v3

- name: ⎔ Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://npm.pkg.github.com'
scope: '@leapwallet'

- name: 📥 Install Dependencies
run: yarn
env:
GH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}

- name: 🏗️ Build Library
run: yarn build:provider && yarn publish:provider
env:
GH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 96baa5d

Please sign in to comment.