-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add release workflow + CI updates (#6)
Signed-off-by: Alexander Shenshin <[email protected]>
- Loading branch information
1 parent
519571e
commit 8d61216
Showing
17 changed files
with
167 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Create a new release and publish NPM package | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
# This allows a subsequently queued workflow run to interrupt previous runs | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js and install dependencies | ||
uses: ./.github/actions/setup | ||
|
||
- name: Setup NPM config | ||
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Setup Git user | ||
run: | | ||
git config --global user.name "github-actions" | ||
git config --global user.email "[email protected]" | ||
- name: Run release | ||
run: yarn release --ci --no-increment | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"git": { | ||
"requireBranch": "main", | ||
"commitMessage": "Release ${version}", | ||
"tagName": "v${version}" | ||
}, | ||
"hooks": { | ||
"before:init": ["yarn typecheck", "yarn lint", "yarn prepare"] | ||
}, | ||
"npm": { | ||
"publish": true | ||
}, | ||
"github": { | ||
"release": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "eudi-wallet-kit-react-native", | ||
"version": "0.1.0", | ||
"name": "@openwallet-foundation/eudi-wallet-kit-react-native", | ||
"version": "0.1.0-alpha.0", | ||
"description": "React Native wrapper for EUDI wallet reference libraries", | ||
"main": "lib/commonjs/index", | ||
"module": "lib/module/index", | ||
|
@@ -26,7 +26,10 @@ | |
"!**/__tests__", | ||
"!**/__fixtures__", | ||
"!**/__mocks__", | ||
"!**/.*" | ||
"!**/.*", | ||
"package.json", | ||
"README.md", | ||
"LICENSE" | ||
], | ||
"scripts": { | ||
"example:start": "cd ./example && yarn start", | ||
|
@@ -46,10 +49,7 @@ | |
"ios", | ||
"android" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/openwallet-foundation-labs/eudi-wallet-kit-react-native.git" | ||
}, | ||
"repository": "https://github.com/openwallet-foundation-labs/eudi-wallet-kit-react-native.git", | ||
"homepage": "https://github.com/openwallet-foundation-labs/eudi-wallet-kit-react-native", | ||
"author": "Alexander Shenshin <[email protected]> (https://github.com/AlexanderShenshin)", | ||
"dependencies": { | ||
|
@@ -106,23 +106,6 @@ | |
"@commitlint/config-conventional" | ||
] | ||
}, | ||
"release-it": { | ||
"git": { | ||
"commitMessage": "chore: release ${version}", | ||
"tagName": "v${version}" | ||
}, | ||
"npm": { | ||
"publish": true | ||
}, | ||
"github": { | ||
"release": true | ||
}, | ||
"plugins": { | ||
"@release-it/conventional-changelog": { | ||
"preset": "angular" | ||
} | ||
} | ||
}, | ||
"react-native-builder-bob": { | ||
"source": "src", | ||
"output": "lib", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.