Skip to content

Commit

Permalink
feat: testing ci publish
Browse files Browse the repository at this point in the history
  • Loading branch information
HinsonSIDAN committed Apr 2, 2024
1 parent c98a3a2 commit d7a7982
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 6 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package

on:
release:
types: [created]
push:
branches:
- workflow/ci-deploy
pull_request:
branches:
- workflow/ci-deploy

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn && yarn build

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: yarn && yarn build
- run: |
if [[ "${{ github.event.head_commit.message }}" =~ ^(docs:|chore:|rust:) ]]; then
echo "Skipping npm publish due to commit message."
else
cd packages/module && npm publish --access public
cd ../react && npm publish --access public
fi
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
2 changes: 1 addition & 1 deletion packages/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"vitest": "0.28.4"
},
"peerDependencies": {
"@meshsdk/core": "1.5.11-beta.6"
"@meshsdk/core": "1.5.11-beta.7"
},
"dependencies": {
"@harmoniclabs/plu-ts": "0.2.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@headlessui/react": "^1.6.6",
"@heroicons/react": "^2.0.10",
"@meshsdk/contracts": "1.0.0-beta.4",
"@meshsdk/core": "1.5.11-beta.6",
"@meshsdk/core": "1.5.11-beta.7",
"@meshsdk/react": "*",
"copy-to-clipboard": "^3.3.2",
"flowbite": "^1.5.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Rapidly build Web3 apps on the Cardano Blockchain.",
"homepage": "https://meshjs.dev",
"author": "MeshJS",
"version": "1.5.11-beta.6",
"version": "1.5.11-beta.7",
"license": "Apache-2.0",
"type": "module",
"repository": {
Expand Down Expand Up @@ -78,4 +78,4 @@
"nanoid": "3.3.4",
"zod": "3.22.4"
}
}
}
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "React Hooks & Components you need for building dApps on Cardano.",
"homepage": "https://meshjs.dev",
"author": "MeshJS",
"version": "1.1.10-beta.3",
"version": "1.1.10-beta.4",
"license": "Apache-2.0",
"type": "module",
"repository": {
Expand Down Expand Up @@ -62,7 +62,7 @@
"vite": "3.1.4"
},
"peerDependencies": {
"@meshsdk/core": "1.5.11-beta.6",
"@meshsdk/core": "1.5.11-beta.7",
"react-dom": "17.x || 18.x",
"react": "17.x || 18.x"
},
Expand Down

0 comments on commit d7a7982

Please sign in to comment.