Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/initia registry #26

Merged
merged 7 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading