0
Fork 0
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:
Juan Picado 2024-09-14 20:54:08 +02:00
parent 063b5ee934
commit ffeea463c8
3 changed files with 8 additions and 4 deletions

View file

@ -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:

View file

@ -1,4 +1,4 @@
name: Release 7.x
name: Release
on:
push:

View file

@ -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