Skip to content

Commit

Permalink
chore: skip publish to npm temporary
Browse files Browse the repository at this point in the history
  • Loading branch information
LancelotLewis committed Apr 8, 2024
1 parent 64fa198 commit c1165ba
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions playground/react/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit c1165ba

Please sign in to comment.