Skip to content

Commit

Permalink
feat: add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ALPAC-4 committed Nov 22, 2024
1 parent 59cd9d0 commit 1c22f75
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: NPM publish

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
"scripts": {
"build": "tsc --module commonjs",
"lint": "npx eslint . --fix",
"prepare": "husky"
"prepare": "husky",
"prepublishOnly": "rm -rf ./dist && npm run build"
},
"author": "Initia Foundation",
"license": "Apache-2.0",
"description": "",
"description": "Amino types and proto registry for initia chains",
"files": [
"dist"
],
Expand Down

0 comments on commit 1c22f75

Please sign in to comment.