-
Notifications
You must be signed in to change notification settings - Fork 24
45 lines (39 loc) · 1.3 KB
/
releases.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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