File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : releaseEtherpad.yaml
2+ on :
3+ workflow_dispatch :
4+
5+ jobs :
6+ release :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - name : Checkout repository
10+ uses : actions/checkout@v3
11+ - uses : actions/setup-node@v4
12+ with :
13+ node-version : 22
14+ - uses : pnpm/action-setup@v4
15+ name : Install pnpm
16+ with :
17+ version : 10
18+ run_install : false
19+ - name : Get pnpm store directory
20+ shell : bash
21+ run : |
22+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
23+ - uses : actions/cache@v4
24+ name : Setup pnpm cache
25+ if : always()
26+ with :
27+ path : ${{ env.STORE_PATH }}
28+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
29+ restore-keys : |
30+ ${{ runner.os }}-pnpm-store-
31+ - name : Only install direct dependencies
32+ run : pnpm config set auto-install-peers false
33+ - name : Install dependencies
34+ run : pnpm install --frozen-lockfile
35+ - name : Release to npm
36+ run : pnpm publish
37+ env :
38+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments