Skip to content

Commit

Permalink
Feat/initia registry (#26)
Browse files Browse the repository at this point in the history
* feat: add initia-registry package

* remove .yarn

* fix: remove unuse types

* fix: fix build.js

* fix: run format

* fix: fix version and, fix name

* fix: fix name
  • Loading branch information
ALPAC-4 authored Apr 2, 2024
1 parent 46b6feb commit a25fc5e
Show file tree
Hide file tree
Showing 55 changed files with 2,401 additions and 117 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/npm_publish_initia_registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on:
push:
branches: ["main"]
paths:
- _package/package.json
- _packages/initia_registry/package.json

jobs:
build:
publish_types:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -17,10 +17,10 @@ jobs:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- run: npm ci
working-directory: ./_package
working-directory: ./_packages/initia_registry
- run: npm run build
working-directory: ./_package
working-directory: ./_packages/initia_registry
- run: npm publish
working-directory: ./_package
working-directory: ./_packages/initia_registry
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }}
26 changes: 26 additions & 0 deletions .github/workflows/npm_publish_types.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: NPM publish initia-registry-types

on:
push:
branches: ["main"]
paths:
- _packages/types/package.json

jobs:
publish_types:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- run: npm ci
working-directory: ./_packages/types
- run: npm run build
working-directory: ./_packages/types
- run: npm publish
working-directory: ./_packages/types
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.DS_Store

.vscode
5 changes: 0 additions & 5 deletions .vscode/settings.json

This file was deleted.

9 changes: 9 additions & 0 deletions _packages/initia-registry/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dist
node_modules

# MacOS
.DS_Store

# dist
main
esm
Loading

0 comments on commit a25fc5e

Please sign in to comment.