Skip to content

Commit

Permalink
ci: Simplify manual publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Thatchapon Unprasert committed Nov 8, 2024
1 parent 149701a commit 5091b54
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/manual-publish.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,18 @@
name: Publish from branch to NPM registry
name: Manual Publish to NPM registry

on:
workflow_dispatch:
inputs:
branch:
description: 'Branch to run the job on'
required: true

jobs:
build:
if: ${{ github.event.inputs.branch != 'main' }}
runs-on: ubuntu-latest
env:
CI: true
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- name: Checkout branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.branch }}
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
Expand Down

0 comments on commit 5091b54

Please sign in to comment.