2024-09-22 09:16:53 -05:00
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: Release Snapshot
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-11-02 04:02:18 -05:00
|
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
2024-09-22 09:16:53 -05:00
|
|
|
- name: Use Node (latest)
|
2024-11-02 05:38:10 -05:00
|
|
|
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
|
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 }}
|
2024-10-13 10:31:02 -05:00
|
|
|
REGISTRY_URL: rg.verdaccio.org
|