-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate canary builds for all 3 packages
- Loading branch information
Showing
3 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
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,38 @@ | ||
name: typescript-wallet-sdk-km beta build | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
jobs: | ||
npm-beta: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 18 | ||
registry-url: https://registry.npmjs.org/ | ||
- run: yarn install | ||
- run: yarn build | ||
- run: yarn test:ci | ||
|
||
- name: Create beta package version | ||
run: | | ||
timestamp=$(date +%s%3N) | ||
current_version=$(jq -r '.version' @stellar/typescript-wallet-sdk-km/package.json) | ||
echo "new_version=${current_version}-beta.${timestamp}" >> $GITHUB_ENV | ||
- name: Update package.json version | ||
uses: jossef/action-set-json-field@6e6d7e639f24b3955ef682815317b5613ac6ca12 # v1 | ||
with: | ||
file: ./@stellar/typescript-wallet-sdk-km/package.json | ||
field: version | ||
value: ${{ env.new_version }} | ||
|
||
- name: Publish beta build | ||
run: | | ||
cd @stellar/typescript-wallet-sdk-km | ||
yarn publish --tag beta --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_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,38 @@ | ||
name: typescript-wallet-sdk-soroban beta build | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
jobs: | ||
npm-beta: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 18 | ||
registry-url: https://registry.npmjs.org/ | ||
- run: yarn install | ||
- run: yarn build | ||
- run: yarn test:ci | ||
|
||
- name: Create beta package version | ||
run: | | ||
timestamp=$(date +%s%3N) | ||
current_version=$(jq -r '.version' @stellar/typescript-wallet-sdk-soroban/package.json) | ||
echo "new_version=${current_version}-beta.${timestamp}" >> $GITHUB_ENV | ||
- name: Update package.json version | ||
uses: jossef/action-set-json-field@6e6d7e639f24b3955ef682815317b5613ac6ca12 # v1 | ||
with: | ||
file: ./@stellar/typescript-wallet-sdk-soroban/package.json | ||
field: version | ||
value: ${{ env.new_version }} | ||
|
||
- name: Publish beta build | ||
run: | | ||
cd @stellar/typescript-wallet-sdk-soroban | ||
yarn publish --tag beta --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |