Skip to content

Commit

Permalink
0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Lbqds committed Dec 12, 2023
1 parent 53da070 commit 4a1dba6
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 10 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Publish

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

jobs:
get_dist_tag:
runs-on: ubuntu-latest
outputs:
DIST_TAG: ${{ steps.get_tag.outputs.DIST_TAG }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- name: Get the tag name
id: get_tag
run: |
tag=$(echo ${GITHUB_REF/refs\/tags\//} | cut -c 2-)
dist_tag=$([[ $tag =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && echo latest || echo "")
dist_tag=$([[ $tag =~ ^[0-9]+\.[0-9]+\.[0-9]+-rc\.[0-9]+$ ]] && echo rc || echo $dist_tag)
[ -z "$dist_tag" ] && echo "Distribution tag is not set to latest nor to rc" && exit 1
echo ::set-output name=DIST_TAG::$dist_tag
shell: bash
publish:
needs: get_dist_tag
if: needs.get_dist_tag.outputs.DIST_TAG
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- name: Publish to npm
run: |
npm ci
npm run build
npm publish --access public --tag ${{ needs.get_dist_tag.outputs.DIST_TAG }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@walletconnect/universal-provider",
"description": "Universal Provider for WalletConnect Protocol",
"version": "2.10.6",
"name": "@alephium/walletconnect-ethereum-provider",
"description": "Ethereum Provider for WalletConnect Protocol",
"version": "0.1.0",
"author": "WalletConnect, Inc. <walletconnect.com>",
"homepage": "https://github.com/walletconnect/walletconnect-monorepo/",
"homepage": "https://github.com/alephium/walletconnect-ethereum-provider/",
"repository": {
"type": "git",
"url": "https://github.com/walletconnect/walletconnect-monorepo",
"directory": "packages/universal-provider"
"url": "https://github.com/alephium/walletconnect-ethereum-provider",
"directory": "."
},
"license": "Apache-2.0",
"main": "dist/index.cjs.js",
Expand Down

0 comments on commit 4a1dba6

Please sign in to comment.