mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -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:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
@ -20,8 +20,12 @@ jobs:
|
||||||
run: yarn install
|
run: yarn install
|
||||||
- name: Build
|
- name: Build
|
||||||
run: yarn 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
|
- 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
|
- name: Publish
|
||||||
run: sh scripts/publish-prerelease.sh
|
run: sh scripts/publish-prerelease.sh
|
||||||
env:
|
env:
|
||||||
|
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Release 7.x
|
name: Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
|
@ -10,4 +10,4 @@ echo "Bumping version to new tag: ${lastTag}"
|
||||||
echo "//$REGISTRY_URL/:_authToken=$REGISTRY_AUTH_TOKEN" > .npmrc
|
echo "//$REGISTRY_URL/:_authToken=$REGISTRY_AUTH_TOKEN" > .npmrc
|
||||||
|
|
||||||
# Publish to NPM
|
# 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