From 6099cd15955a3b04051a76395e44be93674d38f4 Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Sat, 6 Sep 2025 16:06:40 +0200 Subject: [PATCH] chore: added release of Etherpad --- .github/workflows/releaseEtherpad.yaml.yml | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/releaseEtherpad.yaml.yml diff --git a/.github/workflows/releaseEtherpad.yaml.yml b/.github/workflows/releaseEtherpad.yaml.yml new file mode 100644 index 000000000..9c43fd564 --- /dev/null +++ b/.github/workflows/releaseEtherpad.yaml.yml @@ -0,0 +1,38 @@ +name: releaseEtherpad.yaml +on: + workflow_dispatch: + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - uses: actions/setup-node@v4 + with: + node-version: 22 + - 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 + - uses: actions/cache@v4 + name: Setup pnpm cache + if: always() + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + - name: Only install direct dependencies + run: pnpm config set auto-install-peers false + - name: Install dependencies + run: pnpm install --frozen-lockfile + - name: Release to npm + run: pnpm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}