Skip to content

Commit

Permalink
feat: Publishing workflows (#4)
Browse files Browse the repository at this point in the history
* feat: Adjust workflows

* fix: Correct version
  • Loading branch information
clockworkgr authored Jan 30, 2024
1 parent b7c6c10 commit 3e9170e
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 12 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/major-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ jobs:
run: git config --global user.email "hello@allinbits.com" && git config --global user.name "Github CI"
- name: Build
run: pnpm build
- name: Set version
run: pnpm version major
- name: Push
run: git push
- name: Publish
run: pnpm major
run: npm publish

env:
GH_TOKEN: ${{ secrets.aib_gh_token }}
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/minor-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
workflow_dispatch:

jobs:
build:
publish_minor:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
Expand All @@ -23,10 +23,12 @@ jobs:
run: git config --global user.email "hello@allinbits.com" && git config --global user.name "Github CI"
- name: Build
run: pnpm build
- name: Set version
run: pnpm version minor
- name: Push
run: git push
- name: Publish
run: pnpm minor
run: npm publish

env:
GH_TOKEN: ${{ secrets.aib_gh_token }}
GITHUB_TOKEN: ${{ secrets.aib_gh_token }}
NODE_AUTH_TOKEN: ${{secrets.aib_npm_token}}
10 changes: 6 additions & 4 deletions .github/workflows/patch-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
workflow_dispatch:

jobs:
build:
publish_patch:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
Expand All @@ -23,10 +23,12 @@ jobs:
run: git config --global user.email "hello@allinbits.com" && git config --global user.name "Github CI"
- name: Build
run: pnpm build
- name: Set version
run: pnpm version patch
- name: Commit
run: git push
- name: Publish
run: pnpm patch
run: npm publish

env:
GH_TOKEN: ${{ secrets.aib_gh_token }}
GITHUB_TOKEN: ${{ secrets.aib_gh_token }}
NODE_AUTH_TOKEN: ${{secrets.aib_npm_token}}
2 changes: 1 addition & 1 deletion .github/workflows/test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:


jobs:
build:
coverage:
runs-on: ubuntu-20.04
permissions:
# Required to checkout the code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-vitest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:


jobs:
build:
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
Expand Down
23 changes: 23 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
coverage
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nephos/wallet-utils",
"version": "0.1.0",
"version": "0.0.1",
"description": "",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down

0 comments on commit 3e9170e

Please sign in to comment.