Skip to content

Commit

Permalink
chore: add beta publish action (#110)
Browse files Browse the repository at this point in the history
* chore: add beta publish action

* chore: add beta script
  • Loading branch information
chybisov authored Jul 4, 2023
1 parent 6f67d4f commit 2e61b52
Show file tree
Hide file tree
Showing 8 changed files with 257 additions and 115 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/publish-beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Release & Publish Beta

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+'
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false

publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .npmrc file to publish to npm
uses: actions/setup-node@v3
with:
node-version: lts/*
registry-url: 'https://registry.npmjs.org'
- name: Install modules
run: yarn install
- name: Build
run: yarn release:build
- name: Publish to npm
run: yarn release:publish:beta
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release & Publish
on:
push:
tags:
- 'v*'
- 'v[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch:

jobs:
Expand Down
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@
"start": "lerna run start",
"build": "lerna run build",
"release": "yarn release:version:before && yarn release:version && yarn release:version:after && yarn standard-version -a",
"release:version": "lerna version --no-changelog --no-push --no-git-tag-version --no-private",
"release:beta": "yarn release:version:before && yarn release:version && yarn release:version:after && yarn standard-version -a --prerelease beta",
"release:version": "lerna version --preid beta --no-changelog --no-push --no-git-tag-version --no-private",
"release:version:before": "node scripts/private-version before",
"release:version:after": "yarn release:build && node scripts/private-version after",
"release:build": "lerna run build --no-private",
"release:publish": "lerna publish from-package --dist-tag latest --contents build --no-verify-access --yes"
"release:publish": "lerna publish from-package --dist-tag latest --contents build --no-verify-access --yes",
"release:publish:beta": "lerna publish from-package --dist-tag beta --contents build --no-verify-access --yes"
},
"standard-version": {
"scripts": {
Expand All @@ -33,8 +35,8 @@
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6",
"@types/uuid": "^9.0.2",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"@typescript-eslint/parser": "^5.60.1",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"cpy-cli": "^5.0.0",
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.8.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet-management/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@ethersproject/abstract-signer": "^5.7.0",
"@ethersproject/experimental": "^5.7.0",
"@ethersproject/providers": "^5.7.2",
"@lifi/sdk": "^2.1.1",
"@lifi/sdk": "^2.1.2",
"@walletconnect/ethereum-provider": "^2.8.6",
"@walletconnect/modal": "^2.5.9",
"events": "^3.3.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/widget-embedded/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
"author": "Eugene Chybisov <[email protected]>",
"dependencies": {
"@ethersproject/abstract-signer": "^5.7.0",
"@lifi/sdk": "^2.1.1",
"@lifi/sdk": "^2.1.2",
"@lifi/wallet-management": "^2.1.3",
"@lifi/widget": "^2.1.3",
"@mui/icons-material": "^5.11.16",
"@mui/lab": "^5.0.0-alpha.134",
"@mui/material": "^5.13.6",
"@mui/icons-material": "^5.13.7",
"@mui/lab": "^5.0.0-alpha.135",
"@mui/material": "^5.13.7",
"@opensea/seaport-js": "2.0.4",
"@tanstack/react-query": "^4.29.19",
"bignumber.js": "^9.1.1",
Expand Down
8 changes: 4 additions & 4 deletions packages/widget-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
},
"author": "Eugene Chybisov <[email protected]>",
"dependencies": {
"@lifi/sdk": "^2.1.1",
"@lifi/sdk": "^2.1.2",
"@lifi/wallet-management": "^2.1.3",
"@lifi/widget": "^2.1.3",
"@mui/icons-material": "^5.11.16",
"@mui/lab": "^5.0.0-alpha.134",
"@mui/material": "^5.13.6",
"@mui/icons-material": "^5.13.7",
"@mui/lab": "^5.0.0-alpha.135",
"@mui/material": "^5.13.7",
"ethers": "^5.7.2",
"events": "^3.3.0",
"react": "^18.2.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/widget/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@
"@ethersproject/address": "^5.7.0",
"@ethersproject/experimental": "^5.7.0",
"@ethersproject/providers": "^5.7.2",
"@lifi/sdk": "^2.1.1",
"@lifi/sdk": "^2.1.2",
"@lifi/wallet-management": "^2.1.3",
"@mui/icons-material": "^5.11.16",
"@mui/lab": "^5.0.0-alpha.134",
"@mui/material": "^5.13.6",
"@mui/icons-material": "^5.13.7",
"@mui/lab": "^5.0.0-alpha.135",
"@mui/material": "^5.13.7",
"@tanstack/react-query": "^4.29.19",
"@tanstack/react-virtual": "^3.0.0-beta.54",
"big.js": "^6.2.1",
Expand Down
Loading

0 comments on commit 2e61b52

Please sign in to comment.