v0.1.21 #35
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: 📦 Release Packages | |
on: | |
release: | |
types: [published] | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
if: github.event.release.prerelease == false | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | |
GH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/[email protected] | |
with: | |
node-version: '16.13.0' | |
registry-url: 'https://npm.pkg.github.com' | |
scope: '@leapwallet' | |
publish-npm-registry: | |
runs-on: ubuntu-latest | |
if: github.event.release.prerelease == false | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
registry-url: 'https://registry.npmjs.org' | |
- name: 📥 Install Dependencies | |
run: yarn | |
env: | |
GH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}} | |
- name: 🏗️ Build Snap and Publish | |
run: yarn lint && yarn test && yarn build:snap && yarn publish:snap | |
env: | |
GH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}} | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |