mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-01-23 02:35:34 +00:00
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 5. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-node dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
85 lines
2.4 KiB
YAML
85 lines
2.4 KiB
YAML
permissions:
|
|
contents: read
|
|
name: Release etherpad
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
release_type:
|
|
description: 'Choose the type of release to create'
|
|
required: true
|
|
default: 'patch'
|
|
type: choice
|
|
options:
|
|
- patch
|
|
- minor
|
|
- major
|
|
|
|
jobs:
|
|
releases:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v5
|
|
with:
|
|
repository: ether/etherpad-lite
|
|
path: etherpad
|
|
token: '${{ secrets.ETHER_RELEASE_TOKEN }}'
|
|
fetch-depth: '0'
|
|
fetch-tags: 'true'
|
|
- name: Checkout master
|
|
working-directory: etherpad
|
|
run: |
|
|
git fetch origin master
|
|
git checkout master
|
|
git reset --hard origin/master
|
|
- name: Checkout develop
|
|
working-directory: etherpad
|
|
run: |
|
|
git fetch origin develop
|
|
git checkout develop
|
|
git reset --hard origin/develop
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v5
|
|
with:
|
|
repository: ether/ether.github.com
|
|
path: ether.github.com
|
|
token: '${{ secrets.ETHER_RELEASE_TOKEN }}'
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v5
|
|
with:
|
|
node-version: '20'
|
|
- uses: pnpm/action-setup@v4
|
|
name: Install pnpm
|
|
with:
|
|
version: 10
|
|
run_install: false
|
|
- name: Get pnpm store directory
|
|
shell: bash
|
|
run: |
|
|
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
|
- name: Install dependencies etherpad
|
|
run: pnpm install --frozen-lockfile
|
|
working-directory: etherpad
|
|
- name: Install dependencies ether.github.com
|
|
run: pnpm install --frozen-lockfile
|
|
working-directory: ether.github.com
|
|
- name: Set git user
|
|
run: |
|
|
git config --global user.name "Etherpad Release Bot"
|
|
git config --global user.email "noreply@etherpad.org"
|
|
- uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: 2.7
|
|
|
|
- uses: reitzig/actions-asciidoctor@v2.0.2
|
|
with:
|
|
version: 2.0.18
|
|
- name: Prepare release
|
|
working-directory: etherpad
|
|
run: |
|
|
cd bin
|
|
pnpm run release ${{ inputs.release_type }}
|
|
- name: Push after release
|
|
working-directory: etherpad
|
|
run: |
|
|
./bin/push-after-release.sh
|