Skip to content

Commit

Permalink
new action
Browse files Browse the repository at this point in the history
  • Loading branch information
timbrinded committed Nov 23, 2023
1 parent a866447 commit bfcd59e
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/manual-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Manual NPM Publish
on:
workflow_dispatch:
inputs:
tag:
description: "Version to publish"
required: true
default: "beta"
branch:
description: "Branch to publish from"
required: true
default: "develop"
dry-run:
description: "Run without publishing"
required: false
default: "true"

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
package: ["cli", "util"]
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.branch }}
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "pnpm"
- run: pnpm install
- run: pnpm run build
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
tag: ${{ github.event.inputs.tag }}
package: packages/${{ matrix.package }}
dry-run: ${{ github.event.inputs.dry-run}}

0 comments on commit bfcd59e

Please sign in to comment.