v0.6.5 #116
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: 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 |