Skip to content

Commit 7deed62

Browse files
committed
add github action
1 parent 587be66 commit 7deed62

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

.github/ss1.png

-77 KB
Binary file not shown.

.github/workflows/npm-publish.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish npm package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
publish-npm:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v3
13+
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: '16'
18+
registry-url: 'https://registry.npmjs.org/'
19+
20+
- name: Install dependencies
21+
run: yarn
22+
23+
- name: Build project
24+
run: yarn build
25+
26+
- name: Publish to npm
27+
run: npm publish
28+
env:
29+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "dappscout-iframe",
33
"description": "A set of context and hook for an iframe that allows interaction with dApps using a connected wallet.",
4-
"version": "0.2.0",
4+
"version": "0.2.1",
55
"author": "Maksim Alekseenko (https://github.com/maxaleks)",
66
"contributors": [
77
"Apoorv Lathey <apoorv.xyz>"

0 commit comments

Comments
 (0)