Skip to content

v0.1.8

v0.1.8 #9

Workflow file for this run

name: Release Package
on:
release:
types:
- published
jobs:
test:
runs-on: ubuntu-latest
env:
NODE_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 install
- name: 🧪 Run Tests
run: yarn test --run
publish-npm-registry:
needs: [test]
runs-on: ubuntu-latest
env:
NEW_VERSION: ${{ github.ref_name }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- run: yarn --ignore-engines
- run: yarn build
- run: yarn publish --non-interactive --no-git-tag-version --new-version=${NEW_VERSION:1}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
publish-github-registry:
needs: [test]
runs-on: ubuntu-latest
env:
NEW_VERSION: ${{ github.ref_name }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://npm.pkg.github.com'
scope: '@leapwallet'
- run: yarn --ignore-engines
- run: yarn build
- run: yarn publish --non-interactive --no-git-tag-version --new-version=${NEW_VERSION:1}
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}