Skip to content

Commit 3d0868a

Browse files
committed
Update release-snapshot.yml
1 parent d93b1b6 commit 3d0868a

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.github/workflows/release-snapshot.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,21 @@ jobs:
3939
yarn install
4040
yarn build
4141
42-
# - name: publish
43-
# run: |
44-
# git config user.email ${{ secrets.BOT_GIT_EMAIL }}
45-
# git config user.name ${{ secrets.BOT_GIT_USERNAME }}
46-
#
47-
# git_hash=$(git rev-parse --short "$GITHUB_SHA")
48-
# current_branch=$(node -p -e "'${{ github.ref }}'.replace('refs/heads/', '')")
49-
#
50-
# ${GITHUB_WORKSPACE}/node_modules/.bin/lerna publish "0.0.0-${git_hash}" \
51-
# --exact \
52-
# --no-push \
53-
# --no-git-tag-version \
54-
# --pre-dist-tag dev \
55-
# --allow-branch ${current_branch}
56-
#
57-
# env:
58-
# NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
59-
# NPM_CONFIG_PROVENANCE: true
42+
- name: publish
43+
run: |
44+
git config user.email ${{ secrets.BOT_GIT_EMAIL }}
45+
git config user.name ${{ secrets.BOT_GIT_USERNAME }}
46+
47+
git_hash=$(git rev-parse --short "$GITHUB_SHA")
48+
current_branch=$(node -p -e "'${{ github.ref }}'.replace('refs/heads/', '')")
49+
50+
${GITHUB_WORKSPACE}/node_modules/.bin/lerna publish "0.0.0-${git_hash}" \
51+
--exact \
52+
--no-push \
53+
--no-git-tag-version \
54+
--pre-dist-tag dev \
55+
--allow-branch ${current_branch}
56+
57+
env:
58+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
59+
NPM_CONFIG_PROVENANCE: true

0 commit comments

Comments
 (0)