-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (42 loc) · 1.24 KB
/
release.yml
File metadata and controls
47 lines (42 loc) · 1.24 KB
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
41
42
43
44
45
46
47
name: Release
on:
workflow_dispatch:
inputs:
package:
description: "The published name of a single package to release"
type: choice
required: false
options:
- "all"
- "@nanoforge-dev/loader-client"
- "@nanoforge-dev/loader-server"
- "@nanoforge-dev/loader-website"
exclude:
description: "Comma separated list of packages to exclude from release (if not depended upon)"
required: false
type: string
dry_run:
description: Perform a dry run?
type: boolean
default: false
permissions:
contents: write
jobs:
npm-publish:
name: npm publish
runs-on: ubuntu-latest
if: github.repository_owner == 'NanoForge-dev'
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Prepare
uses: ./.github/actions/prepare
- name: Release packages
uses: ./node_modules/@nanoforge-dev/actions/dist/release-packages
with:
package: ${{ inputs.package }}
exclude: ${{ inputs.exclude }}
dry: ${{ inputs.dry_run }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}