Skip to content

Publish forgeworks

Publish forgeworks #8

Workflow file for this run

name: Publish
run-name: Publish ${{ inputs.package }}
on:
workflow_dispatch:
inputs:
package:
description: The package to publish
required: true
type: choice
options:
- forgeworks
- minigames
skip-automatic-bump:
description: Whether to skip the automatic bumping of the package version
required: false
default: false
type: boolean
jobs:
PublishPackage:
name: Publish ${{ inputs.package }}
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- name: Checkout Project
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
ssh-key: ${{ secrets.DEPLOY_KEY }}
- name: Install Dependencies
uses: ./.github/actions/install-yarn-dependencies
with:
node-version: 22
- name: Configure Git
run: |
git config --local user.email "${GITHUB_EMAIL}"
git config --local user.name "${GITHUB_USER}"
env:
GITHUB_USER: github-actions[bot]
GITHUB_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com
- name: Build
run: yarn build
- name: Bump Versions and make release
working-directory: packages/${{ inputs.package }}
run: |
if [ "${{ inputs.skip-automatic-bump }}" = "true" ]; then
yarn bump --skip-automatic-bump
else
yarn bump
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}