Skip to content

Pre-release 5.5.0-alpha.2 #3

Pre-release 5.5.0-alpha.2

Pre-release 5.5.0-alpha.2 #3

Workflow file for this run

name: pre-release
run-name: Pre-release ${{ github.event.inputs.version }}
on:
workflow_dispatch:
inputs:
version:
description: Version
required: true
jobs:
release:
if: github.repository == 'mistic100/Photo-Sphere-Viewer'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: data
id: data
run: |
echo "NPM_TAG=$(echo ${{ github.event.inputs.version }} | cut -d '-' -f2 -s | cut -d '.' -f1 -s)" >> $GITHUB_OUTPUT
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
- name: build
run: |
yarn install --frozen-lockfile
yarn ci:version ${{ github.event.inputs.version }}
yarn ci:build
- name: npm publish
run: |
yarn ci:publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NPM_TAG: ${{ steps.data.outputs.NPM_TAG || 'alpha' }}