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

Fix: bad changeset configs #75

Merged
merged 4 commits into from
May 9, 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
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 }}

Expand All @@ -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
Expand All @@ -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.

4 changes: 2 additions & 2 deletions lib/js-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -36,7 +37,6 @@
"access": "public"
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@types/bluebird": "^3.5.42",
"@types/json-bigint": "^1.0.4",
"tsup": "^6.5.0",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
"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"
"publish": "yarn changeset publish"
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"concurrently": "^8.2.2"
},
"packageManager": "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,6 @@ __metadata:
version: 0.0.0-use.local
resolution: "@zerochain/zus-sdk@workspace:lib/js-sdk"
dependencies:
"@changesets/cli": "npm:^2.27.1"
"@types/bluebird": "npm:^3.5.42"
"@types/json-bigint": "npm:^1.0.4"
axios: "npm:^1.2.0"
Expand Down Expand Up @@ -8035,6 +8034,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "zus-js-sdk@workspace:."
dependencies:
"@changesets/cli": "npm:^2.27.1"
concurrently: "npm:^8.2.2"
languageName: unknown
linkType: soft
Expand Down