mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
chore: update ci
This commit is contained in:
parent
063b5ee934
commit
ffeea463c8
3 changed files with 8 additions and 4 deletions
8
.github/workflows/release-snapshot.yml
vendored
8
.github/workflows/release-snapshot.yml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: Release Canary 7.x
|
||||
name: Release Canary
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
@ -20,8 +20,12 @@ 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"
|
||||
- name: Bump up package
|
||||
run: npm version prerelease --no-git-tag-version --preid $(date +%s)
|
||||
run: npm version prerelease --no-git-tag-version --preid ${{ env.sha_short }}
|
||||
- name: Publish
|
||||
run: sh scripts/publish-prerelease.sh
|
||||
env:
|
||||
|
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: Release 7.x
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
|
@ -10,4 +10,4 @@ echo "Bumping version to new tag: ${lastTag}"
|
|||
echo "//$REGISTRY_URL/:_authToken=$REGISTRY_AUTH_TOKEN" > .npmrc
|
||||
|
||||
# Publish to NPM
|
||||
npm publish --registry https://$REGISTRY_URL/ --tag latest-6
|
||||
npm publish --registry https://$REGISTRY_URL/ --tag latest-7
|
||||
|
|
Loading…
Reference in a new issue