2024-09-22 09:16:53 -05:00
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: Release Snapshot
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-10-03 04:09:46 -05:00
|
|
|
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
|
2024-09-22 09:16:53 -05:00
|
|
|
- name: Use Node (latest)
|
2024-10-01 15:22:01 -05:00
|
|
|
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
|
2024-09-22 09:16:53 -05:00
|
|
|
with:
|
|
|
|
node-version-file: '.nvmrc'
|
|
|
|
- name: Install
|
|
|
|
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 ${{ env.sha_short }}
|
|
|
|
- name: Publish
|
|
|
|
run: sh scripts/publish-prerelease.sh
|
|
|
|
env:
|
|
|
|
REGISTRY_AUTH_TOKEN: ${{ secrets.VERDACCIO_REGISTRY_TOKEN_CANARY }}
|
|
|
|
REGISTRY_URL: registry.verdaccio.org
|