From 57e7d345b6274c63325ebb89d4810c807db99048 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yasin=20=C3=87al=C4=B1=C5=9Fkan?= Date: Tue, 27 Aug 2024 23:55:07 +0300 Subject: [PATCH] Setup and release Beta v1 --- .github/workflows/beta-v1-release.yml | 30 +++++++++++++++++++++++++++ package.json | 4 ++-- rollup.config.js | 2 +- 3 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/beta-v1-release.yml diff --git a/.github/workflows/beta-v1-release.yml b/.github/workflows/beta-v1-release.yml new file mode 100644 index 0000000..fc0fa25 --- /dev/null +++ b/.github/workflows/beta-v1-release.yml @@ -0,0 +1,30 @@ +name: "🚀 Beta v1 release" + +on: + push: + branches: + - beta-v1 + +jobs: + release: + name: 🚀 Beta v1 release + runs-on: ubuntu-latest + steps: + - name: Setup repo + uses: actions/checkout@v3 + with: + persist-credentials: false + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 20.x + registry-url: https://registry.npmjs.org + + - name: Build app + run: npm ci && npm run build:release + + - name: 🚀 publish + run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} \ No newline at end of file diff --git a/package.json b/package.json index 8a8583c..2381d68 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "version": "1.3.5", - "name": "@perawallet/connect", - "description": "JavaScript SDK for integrating Pera Wallet to web applications.", + "name": "@perawallet/connect-beta", + "description": "Beta version of Pera Wallet Connect", "main": "dist/index.js", "scripts": { "dev": "./node_modules/.bin/rollup -c -w", diff --git a/rollup.config.js b/rollup.config.js index 286274f..95588bc 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -47,7 +47,7 @@ export default [ json(), sizes(), replace({ - PERA_CONNECT_VERSION: `v${PeraConnectVersion}`, + PERA_CONNECT_VERSION: `v${PeraConnectVersion} - BETA`, preventAssignment: true }) ]