-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (31 loc) · 894 Bytes
/
Copy pathmanual-deploy.yml
File metadata and controls
40 lines (31 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: manual-deploy-production
run-name: Deploy Production from ${{ inputs.ref }}
permissions:
contents: read
packages: write
on:
workflow_dispatch:
inputs:
ref:
description: 'Git ref to deploy (e.g. main, v1.0.0, c91ee3c, etc.)'
required: true
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.inputs.ref }}
- uses: pnpm/action-setup@v5
- uses: actions/setup-node@v6
with:
node-version: 22
cache: "pnpm"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: pnpm install --frozen-lockfile
# build will be executed in prepublishOnly script
- name: Publish to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}