Skip to content

Commit

Permalink
add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
maxaleks committed Mar 26, 2024
1 parent 587be66 commit 7deed62
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
Binary file removed .github/ss1.png
Binary file not shown.
29 changes: 29 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish npm package

on:
release:
types: [created]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org/'

- name: Install dependencies
run: yarn

- name: Build project
run: yarn build

- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dappscout-iframe",
"description": "A set of context and hook for an iframe that allows interaction with dApps using a connected wallet.",
"version": "0.2.0",
"version": "0.2.1",
"author": "Maksim Alekseenko (https://github.com/maxaleks)",
"contributors": [
"Apoorv Lathey <apoorv.xyz>"
Expand Down

0 comments on commit 7deed62

Please sign in to comment.