Skip to content

v0.6.2

v0.6.2 #112

Workflow file for this run

name: Prerelease / Release
on:
release:
types: [released, prereleased]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.TEAM_PAT }}
ref: ${{ github.event.release.target_commitish }}
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Configure git and npm creds
run: |
git config --global user.name "mintbaseteam"
git config --global user.email "eng@mintbase.io"
npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_MINTBASEJS_AUTH_TOKEN }}"
- name: Build & Test
run: |
echo NEAR_NETWORK=testnet >> .env
echo NFT_CONTRACT_ID=default_contract >> .env
npm install
npm ci
npm run lint
npm run build
npm run test
- name: Publish Release
if: ${{ github.event.release.tag_name }}
env:
github-token: ${{ secrets.GITHUB_TOKEN }}
run: |
lerna publish ${{ github.event.release.tag_name }} --force-publish '**' --ignore-changes '**' --yes --no-git-tag-version
git add --all
git commit -m "🤖 Release ${{ github.event.release.tag_name }}"
git push --force