mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-03-18 02:22:46 -05:00
Update release-snapshot.yml
This commit is contained in:
parent
78b759ccfb
commit
91ffc00b30
1 changed files with 6 additions and 1 deletions
7
.github/workflows/release-snapshot.yml
vendored
7
.github/workflows/release-snapshot.yml
vendored
|
@ -19,8 +19,13 @@ jobs:
|
|||
run: yarn install
|
||||
- name: Build
|
||||
run: yarn build
|
||||
- name: Declare some variables
|
||||
shell: bash
|
||||
run: |
|
||||
echo "sha_short=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV"
|
||||
echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> "$GITHUB_ENV"
|
||||
- name: Bump up package
|
||||
run: npm version prerelease --no-git-tag-version --preid ${{ github.head_ref }}.${{ github.sha }}
|
||||
run: npm version prerelease --no-git-tag-version --preid ${{ env.branch }}.${{ env.sha_short }}
|
||||
- name: Publish
|
||||
run: sh scripts/publish-prerelease.sh
|
||||
env:
|
||||
|
|
Loading…
Add table
Reference in a new issue