Skip to content

Commit

Permalink
use old snapshot release without version info bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas742 committed Sep 18, 2024
1 parent 839f2d9 commit 10d566f
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/release-snapshot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: 'Release - Snapshot'

on:
workflow_dispatch
on: workflow_dispatch

jobs:
test:
Expand Down Expand Up @@ -34,34 +33,23 @@ jobs:
run: |
npm install -g npm
yarn install
yarn build
- name: version
- name: publish
run: |
git config user.email ${{ secrets.BOT_GIT_EMAIL }}
git config user.name ${{ secrets.BOT_GIT_USERNAME }}
git_hash=$(git rev-parse --short "$GITHUB_SHA")
current_branch=$(node -p -e "'${{ github.ref }}'.replace('refs/heads/', '')")
echo "current_branch=${current_branch}" >> "$GITHUB_ENV"
${GITHUB_WORKSPACE}/node_modules/.bin/lerna version "0.0.0-${git_hash}" \
${GITHUB_WORKSPACE}/node_modules/.bin/lerna publish "0.0.0-${git_hash}" \
--exact \
--no-push \
--no-git-tag-version \
--pre-dist-tag dev \
--allow-branch ${current_branch}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NPM_CONFIG_PROVENANCE: true
- name: build
run: yarn build

- name: publish to npm
run: |
${GITHUB_WORKSPACE}/node_modules/.bin/lerna publish from-git \
--pre-dist-tag dev \
--allow-branch ${{ env.current_branch }}
env:
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NPM_CONFIG_PROVENANCE: true

0 comments on commit 10d566f

Please sign in to comment.