From c1165ba9970a4e442aea953f0caef307e1856959 Mon Sep 17 00:00:00 2001 From: zhanghan Date: Tue, 9 Apr 2024 03:13:55 +0800 Subject: [PATCH] chore: skip publish to npm temporary --- .github/workflows/release.yml | 50 +++++++++++++++++------------------ playground/react/package.json | 1 + 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 03b5819..e751dd5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,31 +26,31 @@ jobs: - name: Initialize run: make github-init - - name: Extract current version - id: get_version - run: | - CURRENT_VERSION=$(cat version | awk '{$1=$1;print}') - echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_ENV - - - name: Config Git - run: | - git config --local user.name "bot" - git config --local user.email "bot@arcblock.io" - - - name: Publish to NPM - run: | - npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}" - VERSION=$(cat version | awk '{$1=$1;print}') - echo "publish version ${VERSION}" - lerna version ${CURRENT_VERSION} --exact --no-push --force-publish --yes - lerna publish from-git --yes - curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"did-connect packages v${VERSION} was successfully published\"}" ${{ secrets.SLACK_WEBHOOK }} - - - name: Push Version - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.GIT_HUB_TOKEN }} - branch: ${{ github.ref }} + # - name: Extract current version + # id: get_version + # run: | + # CURRENT_VERSION=$(cat version | awk '{$1=$1;print}') + # echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_ENV + + # - name: Config Git + # run: | + # git config --local user.name "bot" + # git config --local user.email "bot@arcblock.io" + + # - name: Publish to NPM + # run: | + # npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}" + # VERSION=$(cat version | awk '{$1=$1;print}') + # echo "publish version ${VERSION}" + # lerna version ${CURRENT_VERSION} --exact --no-push --force-publish --yes + # lerna publish from-git --yes + # curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"did-connect packages v${VERSION} was successfully published\"}" ${{ secrets.SLACK_WEBHOOK }} + + # - name: Push Version + # uses: ad-m/github-push-action@master + # with: + # github_token: ${{ secrets.GIT_HUB_TOKEN }} + # branch: ${{ github.ref }} # - name: Bundle Blocklets # run: make bundle diff --git a/playground/react/package.json b/playground/react/package.json index 0015464..9db44f8 100644 --- a/playground/react/package.json +++ b/playground/react/package.json @@ -1,6 +1,7 @@ { "name": "@blocklet/playground-react", "version": "0.1.0", + "private": "true", "scripts": { "dev": "blocklet dev", "lint": "eslint src api --ext .mjs,.js,.jsx,.ts,.tsx",