Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

mv changset folder to root #70

Merged
merged 3 commits into from
May 9, 2024
Merged
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
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions .changeset/seven-drinks-learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@zerochain/zus-sdk": patch
---

Package.json changes
23 changes: 10 additions & 13 deletions .github/workflows/changeset-publish.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Publish
name: Release
on:
workflow_run:
workflows: [CI]
branches: [main]
types: [completed]
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

@@ -12,8 +11,8 @@ permissions:
pull-requests: write

jobs:
publish:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Action checkout
@@ -34,17 +33,15 @@ jobs:
- name: Installing dependencies
run: yarn install

- name: tsc Linting
- name: tsc Linting and Build
working-directory: lib/js-sdk
run: yarn lint
run: yarn lint && yarn build

- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
publish: yarn release
cwd: lib/js-sdk
publish: yarn publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.npm_token2 }}
NODE_AUTH_TOKEN: ${{secrets.npm_token2}}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion example/webapp
Submodule webapp updated 4 files
+2 −0 .gitignore
+1,102 −1,102 dist/assets.js
+1,102 −1,102 dist/main.js
+1 −0 package.json
5 changes: 0 additions & 5 deletions lib/js-sdk/.changeset/wicked-otters-walk.md

This file was deleted.

3 changes: 2 additions & 1 deletion lib/js-sdk/package.json
Original file line number Diff line number Diff line change
@@ -8,7 +8,8 @@
"build": "tsc",
"build:tsup": "tsup src/index.ts --format cjs,esm --dts",
"lint": "tsc --noEmit",
"release": "yarn build && yarn changeset publish",
"publish": "yarn changeset publish",
"buildpub": "yarn build && yarn publish",
"version": "yarn changeset"
},
"main": "dist/index.js",
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -13,8 +13,7 @@
"dev": "concurrently \"yarn dev:app\" \"yarn dev:lib\"",
"build:app": "cd ./example/webapp && yarn build",
"build:lib": "cd ./lib/js-sdk && yarn build",
"build": "yarn build:app && yarn build:lib",
"version": "cd ./lib/js-sdk && yarn version"
"build": "yarn build:app && yarn build:lib"
},
"devDependencies": {
"concurrently": "^8.2.2"