Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .autorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"author": {
"name": "swan-app-bot",
"email": "github.swan-app-bot@swanbitcoin.com"
},
"plugins": [
"npm",
"all-contributors",
"conventional-commits",
"first-time-contributor"
]
}
64 changes: 64 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Release

on: [push]

jobs:
test:
name: ⚡️ Vitest
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4

- name: 📦 Install dependencies
run: yarn install --frozen-lockfile
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: ⚡️ Run vitest
run: yarn workspaces run test

release:
name: 📤 Release
runs-on: ubuntu-latest
needs: [test]
permissions:
packages: write
contents: write
pull-requests: write
issues: write
if:
"!contains(github.event.head_commit.message, 'ci skip') &&
!contains(github.event.head_commit.message, 'skip ci')"
steps:
- name: ⬇️ Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
registry-url: 'https://npm.pkg.github.com'
scope: '@swan-bitcoin'
env:
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 📦 Install dependencies
run: yarn install --frozen-lockfile
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 📤 Release the kraken!
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PROTECTED_BRANCH_REVIEWER_TOKEN:
${{ secrets.PROTECTED_BRANCH_REVIEWER_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
run: |
yarn workspaces run compile
yarn workspaces run release
4 changes: 3 additions & 1 deletion packages/xpub-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"compile:watch": "babel --watch -d lib/ src/",
"pretest": "yarn run compile",
"prepublish": "yarn run compile",
"release": "auto shipit",
"test": "jest lib",
"test:watch": "jest --watch src",
"build:docs": "jsdoc *",
Expand All @@ -55,9 +56,10 @@
"@babel/core": "^7.11.6",
"@babel/plugin-transform-modules-commonjs": "^7.10.4",
"@babel/preset-env": "^7.11.5",
"auto": "^11.3.0",
"babel-jest": "^26.3.0",
"jest": "^26.4.2",
"livereload": "^0.9.1",
"nodemon": "^2.0.4"
}
}
}
Loading
Loading